[uClibc 0001501]: BASH built with uClibc does not support "set -o pipefail" or $PIPESTATUS builtin variable

bugs at busybox.net bugs at busybox.net
Thu Sep 13 18:24:12 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1501 
====================================================================== 
Reported By:                murphy666
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1501
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-13-2007 11:24 PDT
Last Modified:              09-13-2007 11:24 PDT
====================================================================== 
Summary:                    BASH built with uClibc 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"

====================================================================== 

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          
======================================================================




More information about the uClibc-cvs mailing list