> $ bash-4.3.22 -c 'shopt -s lastpipe; trap -- "printf x" ERR; true | { true | 
> false; }'
> xxSegmentation fault
> 
> $ ./bash -c 'shopt -s lastpipe; trap -- "printf x" ERR; true | { true | 
> false; }'
> xx./bash: wait_for: No record of process 7954
> x

Yeah, it will take a little longer to suppress the error message in the
cases where it needs to be suppressed.  The important part of the fix is
stopping the core dump.

Chet

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

Reply via email to