On 10/14/12 4:46 AM, Wladimir Sidorenko wrote:
>> What do you think should happen in the following case?
>> ! exit 1 | exit 2 | exit 3
>
> To my mind the '!' operator should have had a higher precedence during
> parsing command line arguments than the pipe and applied only to the
> command it was immediately preceding.
You're free to feel that way, but existing shells don't implement it like
that, and Posix doesn't agree with you.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/