But when I run the test line by line, it's OK.

I used the version of bash is 4.3.30 on master branch, run the test on
the qemux86-64.

On 2016年08月10日 19:16, Chet Ramey wrote:
On 8/10/16 3:32 AM, dengke...@windriver.com wrote:
Hi all

When I run the bash test lastpipe.tests, there were some errors occurred.

The code in lastpipe.tests:

     shopt -s lastpipe
     ...
     exit 142 | false
     echo $? -- ${PIPESTATUS[@]}

The error output:

     lastpipe.tests: line 41:   708 Exit 142                exit 142
     703 Hangup                  | false
     129 -- 142 129
I can't reproduce this.  It looks system-specific; there shouldn't be
anything sending a SIGHUP to a simple command there.



Reply via email to