Subject: Re: Unixism, pipes and pkgsrc
To: Andrew Reilly <andrew-netbsd@areilly.bpc-users.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 08/22/2007 22:26:18
Let me add one more complexity: pipes.  If you want to send stderr in
to the pipe, you have to put the 2>&1 before the pipe:

	foo 2>&1 | bar

If you write 

	foo | bar 2>&1

it will affect stderr for bar, not foo.