經安全檢測,此網站為安全網站,請放心前往原始網址!

LSST v1.05r3 > Chapter 3 > How to de-bug the shell script?

Press ctrl + d to save, and run it as $ chmod 755 dsh1.sh $ ./dsh1.sh 4 5 9 $ sh -x dsh1.sh 4 5 # # Script to show debug of shell # tot=`expr $1 + $2` expr $1 + $2 ++ expr 4 + 5 + tot=9 echo $tot + echo 9 9 See the above output, -x shows the exact values

www.freeos.com

網址安全性掃描由 google 提供