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

Robert Sanderman rs at mhuxd.UUCP
Sun Jan 5 13:27:43 AEST 1986


> >     $ command 2>&1 >file
> >     $ command >file 2>&1

I understand why the above are different but why do the following
two lines produce different results:

	$ 2>&1 command > file
	$ command 2>&1 > file

Bob Sanderman
ihnp4!mhuxd!rs



More information about the Comp.unix.wizards mailing list