bug-bash
[Top][All Lists]
Advanced

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

bash test: lastpipe.tests failed


From: address@hidden
Subject: bash test: lastpipe.tests failed
Date: Wed, 10 Aug 2016 15:32:24 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

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

The lastpipe.right is:

    ...
    1 -- 142 1
    ...

When I run the above line by line, it was correct.

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

That is strange.

//dengke






reply via email to

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