zsh-workers
 help / color / mirror / code / Atom feed
* noclobber overzealous with multios and /dev/stdout
@ 2010-10-04 21:32 Mikael Magnusson
  2010-10-05 15:00 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Magnusson @ 2010-10-04 21:32 UTC (permalink / raw)
  To: zsh workers

I can't really see the logic here, so I'm guessing it's a bug somewhere:

zsh -f
% setopt clobber
% echo test > /dev/stdout > file
test
% echo test > /dev/stdout > file
test
% setopt noclobber
% echo test > /dev/stdout > file
zsh: file exists: file
% rm file
% echo test > /dev/stdout > file
test
% echo test > file > /dev/stdout
zsh: file exists: file
% rm file
% echo test > file > /dev/stdout
zsh: file exists: /dev/stdout


this is also pretty weird
% rm file
% echo test > file > /dev/fd/0
test
% rm file
% echo test > file > /dev/fd/1
zsh: file exists: /dev/fd/1

both 0 and 1 are symlinks to /dev/pts/33

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-05 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04 21:32 noclobber overzealous with multios and /dev/stdout Mikael Magnusson
2010-10-05 15:00 ` Bart Schaefer
2010-10-05 15:18   ` Mikael Magnusson
2010-10-05 16:16     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).