bug-bash
[Top][All Lists]
Advanced

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

Re: "! true &" sets $? to 1


From: Chet Ramey
Subject: Re: "! true &" sets $? to 1
Date: Sun, 24 Aug 2014 21:28:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 8/23/14, 6:56 AM, Vincent Lefevre wrote:

> Bash Version: 4.3
> Patch Level: 24
> Release Status: release
> 
> Description:
> 
> When a pipeline starting with "!" is run in background, bash sets $?
> to 1 instead of 0. POSIX says:
> 
>   The exit status of an asynchronous list shall be zero.

Thanks for the report.  This will be fixed in the next release of bash.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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