🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #134

n>&m redirection doesn't work in bash 0.99

#134
From: Jeff Kellem
Date: Sun, 25 Jun 1989 03:14
21 lines
1093 bytes
|   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
Technical Details
Message-ID: <8906250314.AA14361@bu-cs.BU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!BU-CS.BU.EDU!composer
References: <8906250301.AA03481@hobbes.ai.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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