Sunday 14 April 2013

Enable "set -x" for all functions

Tracing can be enabled for a KornShell script by using "set -x", but this will have no effect on functions within the script.

The following line will enable tracing for all functions in a script:
typeset -ft $(typeset +f)
Note:This will not work for BASH.

0 blogger-disqus:

Post a Comment