Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 22940 - backwards compatibility with bash
backwards compatibility with bash
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  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:
Last Closed: 2000-12-28 11:00:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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.