zsh-workers
 help / color / mirror / code / Atom feed
* RFC: function -T f { … }
@ 2020-03-18 18:30 Daniel Shahaf
  2020-03-18 19:53 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Shahaf @ 2020-03-18 18:30 UTC (permalink / raw)
  To: zsh-workers

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-20  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 18:30 RFC: function -T f { … } Daniel Shahaf
2020-03-18 19:53 ` Peter Stephenson
2020-03-20  2:04   ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).