Hello,

below this mail you can find a minimal script misbehaving when
job-control is configured out (tested on linx with different archs,
libc's, and versions (including current git)).

Notice that the configure script disables job-control when a run-time
test (which could easily be a built-time test) fails. So by default,
a cross-compiled bash will have this bug.

-- Felix

#!/bin/bash

g() {
        p=$PIPESTATUS
        if [[ $p -ne 0 ]]
        then
                echo FAIL!!
        fi
}

f() {
        false && false
        true | true
        g
}

f

Reply via email to