bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different exit codes in $? and address@hidden


From: Andreas Schwab
Subject: Re: different exit codes in $? and address@hidden
Date: Sun, 14 Oct 2012 11:07:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Wladimir Sidorenko <address@hidden> writes:

> 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. So that in
>
> ! command1 | command2 | command3
>
> it would only negate command1.

Which doesn't make sense, since the exit code of command1 has no
significance.  The exit code of a pipeline is that of the last command.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]