Bug 22940

Summary: backwards compatibility with bash
Product: [Retired] Red Hat Linux Reporter: Stefan <svb>
Component: bashAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0JCC: svb
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-28 16:00:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan 2000-12-28 14:06:30 UTC
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 16:00:09 UTC
It's an error in the script. bash1 was slightly more lenient.