Bug 22940 - backwards compatibility with bash
backwards compatibility with bash
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
7.0J
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-12-28 09:06 EST by Stefan
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-12-28 11:00:12 EST
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 Stefan 2000-12-28 09:06:30 EST
Can't do condition statements like the following anymore :
[ $? -eq 0 ] && { echo "Great stuff" }
This used to work in bash but now bash2 requires something like :
[ $? -eq 0 ] && { echo "Great stuff"; }

This caused half the scripts on my machine not to work
anymore after I upgraded to Redhat 7 final, because there
is now only bash2.
Comment 1 Bill Nottingham 2000-12-28 11:00:09 EST
It's an error in the script. bash1 was slightly more lenient.

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