2001-07-10 14:25:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-11-27 14:56:18 +00:00
|
|
|
exec echo "Exiting \"$0\" at line $LINENO." # Exit from script here.
|
|
|
|
# $LINENO is an internal Bash variable set to the line number it's on.
|
2001-07-10 14:25:50 +00:00
|
|
|
|
2002-06-03 14:35:48 +00:00
|
|
|
# ----------------------------------
|
2001-07-10 14:25:50 +00:00
|
|
|
# The following lines never execute.
|
2001-09-04 13:27:31 +00:00
|
|
|
|
2012-11-27 14:56:18 +00:00
|
|
|
echo "This echo fails to echo."
|
2001-07-10 14:25:50 +00:00
|
|
|
|
2002-06-03 14:35:48 +00:00
|
|
|
exit 99 # This script will not exit here.
|
|
|
|
# Check exit value after script terminates
|
|
|
|
#+ with an 'echo $?'.
|
|
|
|
# It will *not* be 99.
|