Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

noclobber overzealous with multios and /dev/stdout



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



Messages sorted by: Reverse Date, Date, Thread, Author