From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8344 invoked from network); 10 Nov 2005 03:50:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Nov 2005 03:50:37 -0000 Received: (qmail 78162 invoked from network); 10 Nov 2005 03:50:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Nov 2005 03:50:31 -0000 Received: (qmail 26380 invoked by alias); 10 Nov 2005 03:50:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21994 Received: (qmail 26371 invoked from network); 10 Nov 2005 03:50:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Nov 2005 03:50:26 -0000 Received: (qmail 77798 invoked from network); 10 Nov 2005 03:50:26 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 10 Nov 2005 03:50:24 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IPP00IPXZZY41Y0@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 09 Nov 2005 21:50:23 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id jAA3oM0S002907; Wed, 09 Nov 2005 19:50:22 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id jAA3oLUk002906; Wed, 09 Nov 2005 19:50:21 -0800 Date: Thu, 10 Nov 2005 03:50:21 +0000 From: Bart Schaefer Subject: Re: bug in sed completion In-reply-to: <43727FED.3070104@ulpmm.u-strasbg.fr> To: Marc Chantreux , zsh-workers Message-id: <1051110035021.ZM2903@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable References: <20051109220554.GA3939@xpeerience.u-strasbg.fr> <20051109220845.GA93359@dan.emsphone.com> <43727FED.3070104@ulpmm.u-strasbg.fr> Comments: In reply to Marc Chantreux "Re: bug in sed completion" (Nov 10, 12:02am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) 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.0.4 On Nov 10, 12:02am, Marc Chantreux wrote: } Subject: Re: bug in sed completion } } Dan Nelson a =E9crit : } = } >Doesn't that mean you want your backup extension to be "s/x//" ? } > } no, it means that i don't need backup ( i alreasy have one in my DAT ;-= ) ). If I'm reading the GNU sed docs correctly, the following patch should do it. Of course the first chunk of this is probably wrong for non-GNU with= --expression / --file, but I no longer have access to anything but Linux machines so someone else will have to fix up that part. This also fixes a typo (too many sss). Index: Completion/Unix/Command/_sed =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff -c -r1.1 _sed --- Completion/Unix/Command/_sed 12 Mar 2004 18:05:54 -0000 1.1 +++ Completion/Unix/Command/_sed 10 Nov 2005 03:44:47 -0000 @@ -4,16 +4,16 @@ = args=3D( '(-n --quiet --silent)'{-n,--quiet,--silent}'[suppress automatic print= ing of pattern space]' - '(1)*'{-e,--expresssion=3D}'[add sed commands to run]:sed script' - '(1)*'{-f,--file=3D}'[add contents of file to commands to run]:file:_f= iles' + '(1)*'{-e,--expression=3D-}'[add sed commands to run]:sed script' + '(1)*'{-f,--file=3D-}'[add contents of file to commands to run]:file:_= files' '(-e)1: :_guard "^-*" sed script' ':input file:_files' ) = if _pick_variant gnu=3DGNU unix --version; then args+=3D( - '(-i --in-place)'{-i,--in-place=3D}'[edit files in place]::suffix fo= r backup' - '(-l --line-length)'{-l,--line-length=3D}'[specify line-wrap length = for the l command]' + '(-i --in-place)'{-i-,--in-place=3D-}'[edit files in place]::suffix = for backup' + '(-l --line-length)'{-l,--line-length=3D-}'[specify line-wrap length= for the l command]' '(-r --regexp-extended)'{-r,--regexp-extended}'[use extended regular= expressions]' '(-s --separate)'{-s,--separate}'[consider files separately instead = of as a combined stream]' '(-u --unbuffered)'{-u,--unbuffered}'[disable data buffering]' -- = 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 = =