Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Set -x for scripts globally / recursively



Hello all!

Is there any way to cause the "-x" / xtrace flag to be passed into
sub-scripts without doing so explicitly?  I expect there's an
environment variable that might be able to do this, but I'm not sure.

My issue is that I want to trace e.g. ./foo which invokes ./bar which
then invokes ./baz, where all three are Zsh scripts -- and I want them
all to be traced.

I spent some time in the docs (searching for "environment" in the PDF
copy) but I didn't find anything, unfortunately.

Thanks for your help!
Zach Riggle




Messages sorted by: Reverse Date, Date, Thread, Author