CSc 352: Lecture-25

C Shell Scripts

Note: All the programs mentioned in this lecture are in:

/home/cs352/SUMMER02/lecture25progs/

- How to debug shell scripts?
  - Use -v(verbose) and -n(syntaxcheck) options together 
    to check for syntax errors.(Doesn't give runtime errors.)
    Doesn't execute the script.
  - In order to see the runtime errors then we can use
    set echo 
    before the suspicious part of the code, then it will
    print out each line before executing it.

  see random_num
      gervocab
      errspavocab
      spavocab
      find_script