From owner-freebsd-bugs Mon Aug 7 19:13:25 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 422F937B582 for ; Mon, 7 Aug 2000 19:13:21 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 9668036 invoked from network); 8 Aug 2000 02:13:18 -0000 Received: from r227m167.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.227.167]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 8 Aug 2000 02:13:18 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id EAA45474; Tue, 8 Aug 2000 04:13:18 +0200 (CEST) (envelope-from root) From: Cyrille Lefevre Message-Id: <200008080213.EAA45474@gits.dyndns.org> Subject: Re: bin/20449: strange behaviour of sed 's/ */ /' w/ or w/o g In-Reply-To: <200008070859.BAA36261@freefall.freebsd.org> "from sheldonh@FreeBSD.org at Aug 7, 2000 01:59:08 am" To: sheldonh@FreeBSD.org Date: Tue, 8 Aug 2000 04:13:18 +0200 (CEST) Cc: freebsd-bugs@FreeBSD.org Reply-To: clefevre@citeweb.net Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org sheldonh@FreeBSD.org wrote: > Synopsis: strange behaviour of sed 's/ */ /' w/ or w/o g > > State-Changed-From-To: open->closed > State-Changed-By: sheldonh > State-Changed-When: Mon Aug 7 01:58:24 PDT 2000 > State-Changed-Why: > You've shown us some examples of sed(1) doing the right thign. > If you need help with regular expressions, there are some pretty > keen beans on the freebsd-questions mailing list. :-) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=20449 thanks, while I don't really need help w/ re :) I was just disapointed about these results and guessed it was a bug. today, I made the same tests under some other platforms (Solaris, HP-UX, IRIX) which gives me the same results. sorry about the PR. next time, I'll turn my tong 7 times in my mouth before to send a PR like this one :) so, the right way to do what I want is something like sed 's/ \{1,\}/ /' Cyrille. -- home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message