From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1789 invoked by alias); 31 Oct 2014 18:07:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19298 Received: (qmail 10121 invoked from network); 31 Oct 2014 18:07:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=neq5LNigvb1lkNg9SvfBLA==:117 a=neq5LNigvb1lkNg9SvfBLA==:17 a=gmhVCtT3eHoA:10 a=N659UExz7-8A:10 a=c-rM-ryWOwKLA0g1cIQA:9 a=pILNOxqGKmIA:10 Message-id: <5453D0AE.6020705@eastlink.ca> Date: Fri, 31 Oct 2014 11:10:54 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.1.2 MIME-version: 1.0 To: Zsh Users Subject: Re: first adventures 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> In-reply-to: <141030195906.ZM30057@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit 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.