From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28827 invoked by alias); 17 Jan 2010 22:14:17 -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: 27601 Received: (qmail 15587 invoked from network); 17 Jan 2010 22:14:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <100117141355.ZM10551@torch.brasslantern.com> Date: Sun, 17 Jan 2010 14:13:55 -0800 In-reply-to: <20100117205117.568632c9@pws-pc> Comments: In reply to Peter Stephenson "Re: cp file with a filter" (Jan 17, 8:51pm) References: <20100114225814.GB24626@dyuven.local> <20100115171759.1099b9a0@abz8111lx.eurac.edu> <20100117205117.568632c9@pws-pc> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: cp file with a filter MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 17, 8:51pm, Peter Stephenson wrote: } } +`${var[$MBEGIN,$MEND]}' is identical to `$MATCH'. You need only ${var[MBEGIN,MEND]} there, array subscripts interpret in math context ...