[gnu.bash.bug] n>&m redirection doesn't work in bash 0.99

roland@AI.MIT.EDU (Roland McGrath) (06/24/89)

In bash 0.99, when foobar doesn't exist, do:
	cat foobar 2>&1 >foo
The error message from cat goes to the terminal.

composer@BU-CS.BU.EDU (Jeff Kellem) (06/25/89)

|   Date: Sat, 24 Jun 89 22:01:20 +0900
|   From: Roland McGrath <roland@ai.mit.edu>
|
|   In bash 0.99, when foobar doesn't exist, do:
|	   cat foobar 2>&1 >foo
|   The error message from cat goes to the terminal.

This is exactly how the Bourne SHell handles output redirection.
The redirections are handled from left to right, so to get what
you would like, do the following:

	cat foobar > foo 2>&1

BTW, your above example also displays the error msg to the terminal
in the Bourne SHell.

				-jeff

Jeff Kellem
INTERNET: composer@bu-cs.bu.edu  (or composer%bu-cs.bu.edu@bu-it.bu.edu)
UUCP: ...!harvard!bu-cs!composer