| 1 | #!/bin/bash |
| 2 | # missing-keyword.sh |
| 3 | # What error message will this script generate? And why? |
| 4 | |
| 5 | for a in 1 2 3 |
| 6 | do |
| 7 | echo "$a" |
| 8 | # done # Required keyword 'done' commented out in line 8. |
| 9 | |
| 10 | exit 0 # Will not exit here! |
| 11 | |
| 12 | # === # |
| 13 | |
| 14 | # From command line, after script terminates: |
| 15 | echo $? # 2 |