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

Re: Different behaviour of zsh with two input redirections compared to all other POSIX shells I have installed



Hi Peter,

On Mon, Dec 15, 2014 at 11:46:57AM +0000, Peter Stephenson wrote:
> On Mon, 15 Dec 2014 12:33:14 +0100
> Axel Beckert <abe@xxxxxxxxxxxxxxx> wrote:
> > Is this expected/wanted zsh behaviour? Is this something we should fix
> > in zsh? And if so, should it rather behave like bash or like tcsh? :-)
> 
> You'll need to try with "unsetopt multios" before comparing with other
> shells.  (I'm not suggesting that necessarily removes all issues...)

Thanks for that hint. I knew about multiple output redirection being a
zsh-only feature, but I didn't expect that this also affects input
redirection in the same way despite it makes sense (now).

And indeed:

~ → zsh -o nomultios -c 'echo foo | cat -v < /tmp/bar.txt'
bar

So it's not a bug, it's a feature! Thanks again. :-)

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@xxxxxxxxxxxxxxx  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)



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