groups_and_keywords2.tests 203 B

123456789
  1. # This is an error
  2. (eval 'if() { echo; }')
  3. echo Fail:$?
  4. # ^^^^^^ bash prints 1, but interactively it sets $? = 2
  5. # we print 2
  6. # This is an error, and it aborts in script
  7. if() { echo; }
  8. echo Not reached