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.
It's an error in the script. bash1 was slightly more lenient.