bug-bash
[Top][All Lists]
Advanced

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

Re: Inconsistent behavior between 'wait' and 'builtin wait'


From: Chet Ramey
Subject: Re: Inconsistent behavior between 'wait' and 'builtin wait'
Date: Wed, 3 May 2017 09:27:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0.1

On 5/2/17 8:33 PM, Luiz Angelo Daros de Luca wrote:

> Both waits should return 138? I detected this while trying to replace wait
> with a function in order to
> ignore when it returned because of a signal (with a very ugly hack). So,
> the "builtin wait" behavior
> was exactly the one I was trying to implement.
> 
> I guess command wait could have an optional argument for both behavior
> (exit or ignore on signal).
> 
> Is this expected and simply not documented (doc bug), or both wait should
> be equal? I just don't want to rely on a
> bug behavior that might break in the future.

Both waits should return the same exit status. Using `builtin' should not
conceal that aspect of wait's behavior.

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



reply via email to

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