Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: first adventures
- X-seq: zsh-users 19298
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: first adventures
- Date: Fri, 31 Oct 2014 11:10:54 -0700
- In-reply-to: <141030195906.ZM30057@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <544D2D6F.8030505@eastlink.ca> <20141026175257.2611487b@pws-pc.ntlworld.com> <544FD6DD.7010806@eastlink.ca> <141028210510.ZM10784@torch.brasslantern.com> <54510A96.20009@eastlink.ca> <141029134624.ZM15681@torch.brasslantern.com> <545178DF.1040600@eastlink.ca> <141029210738.ZM15833@torch.brasslantern.com> <5452ED18.7070208@eastlink.ca> <141030195906.ZM30057@torch.brasslantern.com>
On 10/30/2014 07:59 PM, Bart Schaefer wrote:
Bart,
(We've drifted back to stuff that would be fine on zsh-users now ...)
The power and the glory.
typeset -g TLC
TRAPDEBUG()
{
(( $#functrace == 1 )) && TLC=(${(z)ZSH_DEBUG_CMD})
}
Years of thrashing that issue, and it turns out to be dead simple.
I take it that 'TRAPDEBUG' AND 'ZSH_DEBUG_CMD' are hard-coded names?
One further question, I tried the ' (Q) ' flag to remove quotes, and it
works
as advertised, however trying to print individual array elements fails
whereas
they print fine with the ' (z) 'flag. Why is that? Fixable? Not
important tho,
I'm just curious.
print -ru2 "two: $TLC[2]" << No luck if ' (Q) ' flag is used.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author