Subject: Re: redirection within sh-like shells
To: Jan Schaumann <email@example.com>
From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
Date: 08/15/2002 17:00:21
Jan Schaumann <firstname.lastname@example.org> writes:
> Klaus Heinz <email@example.com> 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.