BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001501 [buildroot] Architecture Specific minor always 09-13-07 11:24 12-30-07 12:27
Reporter murphy666 View Status public  
Assigned To uClibc
Priority normal Resolution open  
Status assigned   Product Version
Summary 0001501: 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"
Additional Information
Attached Files

- Relationships

- Notes
(0003319)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker