Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Any way to flag a function such that tracing for it is NOT enabled?
- X-seq: zsh-users 12742
- From: "Pax Unix" <paxunix@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Any way to flag a function such that tracing for it is NOT enabled?
- Date: Fri, 28 Mar 2008 11:38:25 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=HSIuDY6R/8VJZhDQFi8wOEqw2ZB3YQMw/qUiwcaxcV8=; b=NIm1Xy5Iv35h6wT4v1cIqF+VJguiiNawCm4T2KqACH37C6ysecQ3uFAGX1Bqsn7Z9KGltmIJv6O05WWmROQD7XVG5Ki86EBUbSOjL62QXXVeyTVfvDoBI4+j4p3990qBpf5vqfOoYG3+2+Is37IvNzdBxJD+aHdyNWbuZIf1tPU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iabJP4Qyh4DKpTqtxG38t7v6Jmi2E0nhzoN3zJwESjtwwylyg8NBnRxpIOJLyDoqqsHQ6V9Aplhuf4mgf6iGBy5VOg3IisVLHTnERv+14SJoeuKZKd+7QIFpOqCsz47UtHTa6QJJAYoAubYfAgm7mrqIrKJG1Eo8CLQh6/gUZ7Q=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I have a number of functions I call when creating my prompt. If I
have xtrace enabled, I get a _lot_ of unneeded spam due to tracing
also being enabled inside those shell functions. I can cut down on
the noise by setting localoptions and turning xtrace off within the
functions, but I will still see trace for those actions.
In the documentation, I couldn't find any flag that is the opposite of
typeset's "-t" option when applied to a function, but that's what I'd
like. For example:
myfunc() {
print Hi
}
$ typeset -f -T myfunc
$ set -x; myfunc; print $options[xtrace]
Hi
on
Is there already a way to do this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author