Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: functions -t
On Wed, Oct 13, 2021 at 1:11 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> A boolean test, perhaps? Since «functions -T» == «typeset -f -T», how
> about, say, a «typeget -f -T f» command that returns 0 or 1
I was thinking something more along the lines of ${(t)var}, because it
would be nice to simultaneously get info about -W (warn_nested_var).
Incidentally the test for "# traced" doesn't differentiate between -t and -T.
I just realized that you can do
functions -T +
functions -t +
to list (separately) all traced functions of each type, by name only.
Unfortunately
functions -WT +
is the union rather than the intersection.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author