Redirection quirks: 2>&1 >file -- vs. -- >file 2>&1

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Sat Jan 4 00:13:24 AEST 1986


>     $ command 2>&1 >file
>     $ command >file 2>&1
> 
> These are not equivalent using our 4.2bsd Bourne shell.

They're not supposed to be.  The redirections are performed
in the order given.



More information about the Comp.unix.wizards mailing list