From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7953 invoked from network); 18 Aug 2003 09:31:23 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Aug 2003 09:31:23 -0000 Received: (qmail 3279 invoked by alias); 18 Aug 2003 09:31:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18945 Received: (qmail 1563 invoked from network); 18 Aug 2003 09:24:37 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 18 Aug 2003 09:24:37 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.235.167.218] by sunsite.dk (MessageWall 1.0.8) with SMTP; 18 Aug 2003 9:24:37 -0000 Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id 19B3F28; Mon, 18 Aug 2003 11:24:36 +0200 (CEST) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id F05D32FDA01; Mon, 18 Aug 2003 11:24:35 +0200 (CEST) Date: Mon, 18 Aug 2003 11:24:35 +0200 From: Roman Neuhauser To: Julian Foad Cc: Philip Martin , dev@subversion.tigris.org, Sebastien Cevey , Clint Adams , zsh-workers@sunsite.dk Subject: Re: [PATCH] bash_completion: improvement, fixes and tests [was: Re: subversion and programmable completion] Message-ID: <20030818092435.GD94462@freepuppy.bellavista.cz> Mail-Followup-To: Julian Foad , Philip Martin , dev@subversion.tigris.org, Sebastien Cevey , Clint Adams , zsh-workers@sunsite.dk References: <20030720162723.GA26506@acolyte.scowler.net> <20030721183359.GA11160@cine7.net> <3F1EE28F.50500@btopenworld.com> <87u19dorwe.fsf@codematters.co.uk> <3F1F3685.5040005@btopenworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F1F3685.5040005@btopenworld.com> User-Agent: Mutt/1.5.1i # julianfoad@btopenworld.com / 2003-07-24 02:29:41 +0100: > Philip Martin wrote: > >Julian Foad writes: > > > >> # Find the relevant lines; > >> # remove brackets and commas; put each word on its own line. > >> sed -n -e '1,/^Available subcommands:$/d;/^$/q' \ > >> -e 's/[ )]//g;s/[(,]/\n/g;p' | > > > >$ sed -V | head -1 > >GNU sed version 3.02 > >$ echo 'x(y' | sed 's/[(,]/\n/g' > >xny > > Oh dear. I don't know why you get that. because that's what it's supposed to do. read the sed description in SUSv3. (I'd quote the two paragraphs here but I fear breaking the ToS...) basically: * \n is not a valid replacement metacharacter * behavior of \X where X is not one of &, , or is undefined * if you want to embed a newline in the replacement, do it this way: sed 's/BRE/first part\ second part/' Julian, looks like your sed is broken. I know I'm coming awfully late, but wanted to make this clear. -- The From: header's been munged to get rid of unwanted cc's. My real address: neuhauser@bellavista.cz.