[buildroot 0001501]: cross-compile bash does not support "set -o pipefail" or $PIPESTATUS builtin variable
bugs at busybox.net
bugs at busybox.net
Sun Dec 30 20:27:23 UTC 2007
The following issue has been UPDATED.
======================================================================
http://busybox.net/bugs/view.php?id=1501
======================================================================
Reported By: murphy666
Assigned To: uClibc
======================================================================
Project: buildroot
Issue ID: 1501
Category: Architecture Specific
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 09-13-2007 11:24 PDT
Last Modified: 12-30-2007 12:27 PST
======================================================================
Summary: cross-compile bash does not support "set -o
pipefail" or $PIPESTATUS builtin variable
Description:
When building BASH (3.2 or 3.1 with latest patch) using buildroot & uClibc
(tested uClibc 0.9.29,0.9.28.3) I'm unable to use PIPEFAIL or PIPESTATUS.
PIPESTATUS Description :
http://tldp.org/LDP/abs/html/internalvariables.html
pipefail script example :
set -o pipefail
cat /tmp/anynotfound | tee -a /tmp/test
will always return 0 has exit code. with the pipefail mode, the exit code
should be the last non zero exit code (in this example cat
/tmp/anynotfound fail so it should return 1)
PIPESTATUS exmaple :
exit 1 | exit 2 | exit 3
echo ${PIPESTATUS[@]}
PIPESTATUS should return string "1 2 3" but always return "0"
======================================================================
----------------------------------------------------------------------
vapier - 12-30-07 12:27
----------------------------------------------------------------------
i doubt this is a uClibc problem. bash is known to have problems when
cross-compiling. build it natively and i imagine it'll start to magically
work.
Issue History
Date Modified Username Field Change
======================================================================
09-13-07 11:24 murphy666 New Issue
09-13-07 11:24 murphy666 Status new => assigned
09-13-07 11:24 murphy666 Assigned To => uClibc
12-30-07 12:26 vapier Project uClibc => buildroot
12-30-07 12:27 vapier Note Added: 0003319
12-30-07 12:27 vapier Summary BASH built with uClibc
does not support "set -o pipefail" or $PIPESTATUS builtin variable =>
cross-compile bash does not support "set -o pipefail" or $PIPESTATUS builtin
variable
12-30-07 12:27 vapier Additional Information Updated
======================================================================
More information about the uClibc-cvs
mailing list