From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 883 invoked from network); 15 Mar 2002 15:49:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Mar 2002 15:49:48 -0000 Received: (qmail 27977 invoked by alias); 15 Mar 2002 15:49:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16840 Received: (qmail 27966 invoked from network); 15 Mar 2002 15:49:40 -0000 From: "Bart Schaefer" Message-Id: <1020315154935.ZM2252@candle.brasslantern.com> Date: Fri, 15 Mar 2002 15:49:35 +0000 In-Reply-To: <1020315153147.ZM2228@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: (backward-)kill-argument" (Mar 15, 3:31pm) References: <15505.46831.979708.369781@wischnow.berkom.de> <1020315153147.ZM2228@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: (backward-)kill-argument MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 15, 3:31pm, I wrote: } } words="${(z)LBUFFER}" } while [[ "${${(@M)words:#[\{\}]}[-1]}" == '{' ]] } do } LBUFFER="${LBUFFER%${words[-1]}[[:space:]]#}" } words="${(z)LBUFFER}" } done I suppose that could be done slightly faster as words[-1]=() while [[ "${${(@M)words:#[\{\}]}[-1]}" == '{' ]] do LBUFFER="${LBUFFER%${words[-1]}[[:space:]]#}" words[-1]=() done if it really is the case that deleting from the end of the string won't change the (z) parse? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net