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

Re: functions -t



Pier Paolo Grassi wrote on Wed, 13 Oct 2021 11:58 +00:00:
> Hello Bart, after my email I thought of implementing the way you suggested
> and it works fine, I was reluctant to do so since I can have a variable
> number of functions to trace (solved with an array and a loop) and was
> confronting with the dilemma of don't wanting to clutter any "functions -T"
> issued in the parent context, but that would need to be able to know if a
> function has the trace activated or not, and I believe this is not
> possibile, but of course I can be wrong.

It is possible:

% f(){}    
% functions -T f 
% which f | sed -n 2p 
	# traced
% 

Cheers,

Daniel




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