Debugging2.ksh (2 of 2 scripts)

#!/bin/ksh -x

# Debugging2.ksh
#
# This script introduces debugging
# using "#!/bin/ksh -x" or
# set -x (and set +x).
# Also, it reminds you how useful
# print statements can be.

# - Jim 666.666.6666

y="Monday"

print "Save the cheerleader, save the world."

print "After cheerleader statement, the value of y is: $y"

# The following print statement won't work
# because it has an extra "t" in the word print.
printt "This is an invalid print statement."