#!/bin/ksh # Debugging1.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 # Turn on debugging. set -x y="Monday" print "Save the cheerleader, save the world." # Turn off debugging. set +x # print statement for debugging. 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."