Debugging Korn Shell Scripts

   

Korn Shell: Unix and Linux Programming Manual, Third Edition, The
By Anatole Olczak

Table of Contents
Appendix G.  Pdksh Quick Reference


The Korn shell provides a number of options that are useful in debugging scripts: noexec ( n), verbose ( v), and xtrace ( x). The noexec ( n) option causes commands to be read without being executed and is used to check for syntax errors. The verbose ( v) option causes the input to displayed as it is read. The xtrace ( x) option causes commands in Korn shell scripts to be displayed as they are executed. This is the most useful, general debugging option. For example, tscript could be run in trace mode if invoked "ksh x tscript".


       
    Top
     



    Korn Shell. Unix and Linux Programming Manual, Third Edition
    Korn Shell. Unix and Linux Programming Manual, Third Edition
    ISBN: N/A
    EAN: N/A
    Year: 2000
    Pages: 177

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net