zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: RFC: function -T f { … }
Date: Wed, 18 Mar 2020 18:30:26 +0000	[thread overview]
Message-ID: <20200318183026.35e74654@tarpaulin.shahaf.local2> (raw)

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

             reply	other threads:[~2020-03-18 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18 18:30 Daniel Shahaf [this message]
2020-03-18 19:53 ` Peter Stephenson
2020-03-20  2:04   ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200318183026.35e74654@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).