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

Anonymous function with redirection and arguments



$ zsh -f
% () { echo foo $1 } >1; cat 1; rm -f 1    
foo
% () { echo foo $1 } bar >1; cat 1; rm -f 1 
foo bar
% () { echo foo $1 } >1 bar; cat 1; rm -f 1
zsh: parse error near `bar'
% 

It shouldn't parse error, should it?

I suppose this has something to do with the sticky redirection
syntax.



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