bug-bash
[Top][All Lists]
Advanced

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

Broken PIPESTATUS with --disable-job-control


From: Felix Janda
Subject: Broken PIPESTATUS with --disable-job-control
Date: Sat, 17 Sep 2016 13:27:11 -0400
User-agent: Mutt/1.6.1 (2016-04-27)

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

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