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

RFC: function -T f { … }



How about adding a «function -T f { … }» syntax, that defines a
function and enables tracing for it simultaneously?

I've often found myself going to the first line of a function, copying
its name, then going to the closing brace of the function and adding
a «functions -T $thefunctionsname» statement there, in order to have
tracing enabled during multiple «zsh -f» runs.

It's backwards incompatible, but not more than «printf -v» was.

Cheers,

Daniel



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