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

2017-05-03 Thread Eduardo Bustamante
On Wed, May 3, 2017 at 8:27 AM, Chet Ramey wrote: > Both waits should return the same exit status. Using `builtin' should not > conceal that aspect of wait's behavior. FWIW, I can reproduce this in the latest devel branch: dualbus@debian:~/src/gnu/bash$ ./bash -c 'trap : TERM; { sleep 1; kill $$

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

2017-05-03 Thread Chet Ramey
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

Inconsistent behavior between 'wait' and 'builtin wait'

2017-05-02 Thread Luiz Angelo Daros de Luca
Hello, Bash was supposed to return 128+signal if a signal is received while running wait command. However, the "builtin wait" does not do the same. "builtin wait" simply ignores that the signal happened. This happens at least since version 3.2.57(2)-release (x86_64-suse-linux-gnu) until 4.4.12(1)