Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!BU-CS.BU.EDU!composer From: composer@BU-CS.BU.EDU (Jeff Kellem) Newsgroups: gnu.bash.bug Subject: n>&m redirection doesn't work in bash 0.99 Message-ID: <8906250314.AA14361@bu-cs.BU.EDU> Date: 25 Jun 89 03:14:49 GMT References: <8906250301.AA03481@hobbes.ai.mit.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 | Date: Sat, 24 Jun 89 22:01:20 +0900 | From: Roland McGrath | | 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