Subject: Re: sh problem
To: None <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 01/24/2000 18:03:53
>> sh: ! ( echo hello | grep h ); echo $?
> The format for a pipeline is:
> [!] command1 [| command2 ...]
> It isn't clear to me what ! should do with the exit status of a
> subshell -
It seems clear to me. ! ( cmd1 | cmd2 ) is a pipeline with the !
marker and only one command in it, that command being a pipeline with
parens around it...so ! should treat the exit status of the subshell
the same way it would the exit status of any other single command.
(How the exit status of the subshell relates to the exit status of
anything it runs is another question. I imagine it's well-defined....)
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B