I normally trace a script with the ksh -x <script name> and redirect strderr to file. But if you have a script like the examble below......
vi hairy
bear=`grep bear animals`
if [ -n $bear ]
then
ksh more_animals
fi
If I ksh -x hairy it won't trace "more_animals" unless I put a -x in it. Is there a way to trace the original script and it will trace all other scripts within without actually have to add the -x? I have scripts invoking scripts that is invoking other scripts and it would be a pain to trace them all down to just add the -x.
Thanks in advance.