Bug 49336 - PIPESTATUS vari able not set
PIPESTATUS vari able not set
Status: CLOSED DUPLICATE of bug 49335
Product: Red Hat Raw Hide
Classification: Retired
Component: bash (Show other bugs)
1.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-07-18 01:54 EDT by j. alan eldridge
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-07-18 01:55:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description j. alan eldridge 2001-07-18 01:54:30 EDT
Description of Problem:

       PIPESTATUS
              An  array  variable (see Arrays below) containing a
              list of exit status values from  the  processes  in
              the   most-recently-executed   foreground  pipeline
              (which may contain only a single command).


How Reproducible:

[alane@wwweasel alane]$ false
[alane@wwweasel alane]$ echo $?
1
[alane@wwweasel alane]$ false|false
[alane@wwweasel alane]$ echo ${#PIPESTATUS[*]}
1
[alane@wwweasel alane]$ false|false
[alane@wwweasel alane]$ echo $PIPESTATUS
0
[alane@wwweasel alane]$ rpm -q bash
bash-2.05-8
[alane@wwweasel alane]$ set | grep BASH
BASH=/bin/bash
BASH_ENV=/home/alane/.bashrc
BASH_VERSINFO=([0]="2" [1]="05" [2]="8" [3]="1" [4]="release" 
[5]="i386-redhat-linux-gnu")
BASH_VERSION=$'2.05.8(1)-release'
[alane@wwweasel alane]$


Does this have to enabled by an option to configure when bash is built?

Additional Notes:

I would be very surprised if this problem does not exist in the release 
RPMS of bash as well, unless something obvious has changed very recently.
Comment 1 Bernhard Rosenkraenzer 2001-07-18 06:17:58 EDT

*** This bug has been marked as a duplicate of 49335 ***

Note You need to log in before you can comment on or make changes to this bug.