LDP/LDP/guide/docbook/abs-guide/missing-keyword.sh

16 lines
290 B
Bash
Raw Normal View History

2002-06-17 13:17:48 +00:00
#!/bin/bash
2012-11-27 14:56:18 +00:00
# missing-keyword.sh
# What error message will this script generate? And why?
2002-06-17 13:17:48 +00:00
for a in 1 2 3
do
echo "$a"
2012-11-27 14:56:18 +00:00
# done # Required keyword 'done' commented out in line 8.
2002-06-17 13:17:48 +00:00
2012-11-27 14:56:18 +00:00
exit 0 # Will not exit here!
2012-04-04 22:51:18 +00:00
# === #
2012-11-27 14:56:18 +00:00
# From command line, after script terminates:
echo $? # 2