Subject: Re: Unixism, pipes and pkgsrc
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: dieter roelants <dieter.NetBSD@pandora.be>
List: netbsd-users
Date: 08/21/2007 22:25:52
On Tue, 21 Aug 2007 16:18:59 +0200
Jan Danielsson <jan.m.danielsson@gmail.com> wrote:

>    Could someone explain why the shell redirections don't work? Also
> could someone explain how I can get all the build error messages to a
> log file?

The order of the redirections matters. For example:

simult:p3:~$ rm / >/dev/null 2>&1 
simult:p3:~$ rm / 2>&1 >/dev/null 
rm: /: is a directory
simult:p3:~$


dieter