Subject: Re: redirection within sh-like shells
To: Jan Schaumann <jschauma@netbsd.org>
From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
List: tech-userlevel
Date: 08/15/2002 17:00:21
Jan Schaumann <jschauma@netbsd.org> writes:
> Klaus Heinz <k.heinz.aug.zwei@onlinehome.de> wrote:
>
> > $ sh
> > $ bla >/dev/null 2>&1
> > bla: not found
>
> Given my understanding of shells and redirection, I can not comprehend
> why 'sh' does _not_ print the error to /dev/null. It has been
> instructed to do so.
Actually, the shell has been instructed to redirect the output of the
"bla" command to /dev/null. Not its own output.
So it seems semantically correct to me.
Aymeric