From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25014 invoked by alias); 31 Oct 2014 02:59:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33581 Received: (qmail 20128 invoked from network); 31 Oct 2014 02:59:20 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=V7nKCljn c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=oln-agsItyI0D1u7bxMA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141030195906.ZM30057@torch.brasslantern.com> Date: Thu, 30 Oct 2014 19:59:06 -0700 In-reply-to: <5452ED18.7070208@eastlink.ca> Comments: In reply to Ray Andrews "Re: first adventures" (Oct 30, 6:59pm) 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> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: first adventures MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 30, 6:59pm, Ray Andrews wrote: > > # We only want the arguments so chop off the command itself: > chop_cmd=${TLC/$0/} > array=("${=chop_cmd}") If you do this ... array=( ${(z)TLC} ) chop_cmd = $array[1] shift array ... then this ... > ... I think I can't even quibble about the quoted strings not being > treated as single arguments ... won't be a quibble any more. Or you could even start out with TLC as an array by doing TLC=( ${(z)ZSH_DEBUG_CMD} ) in TRAPDEBUG. (We've drifted back to stuff that would be fine on zsh-users now ...)