From owner-freebsd-hackers Wed Jul 7 12:45:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from po3.wam.umd.edu (po3.wam.umd.edu [128.8.10.165]) by hub.freebsd.org (Postfix) with ESMTP id 3D87A15027 for ; Wed, 7 Jul 1999 12:45:21 -0700 (PDT) (envelope-from howardjp@wam.umd.edu) Received: from rac1.wam.umd.edu (root@rac1.wam.umd.edu [128.8.10.141]) by po3.wam.umd.edu (8.9.3/8.9.3) with ESMTP id PAA06561; Wed, 7 Jul 1999 15:44:49 -0400 (EDT) Received: from rac1.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac1.wam.umd.edu (8.9.3/8.9.3) with SMTP id PAA20456; Wed, 7 Jul 1999 15:44:48 -0400 (EDT) Received: from localhost by rac1.wam.umd.edu (8.9.3/8.9.3) with ESMTP id PAA20451; Wed, 7 Jul 1999 15:44:48 -0400 (EDT) X-Authentication-Warning: rac1.wam.umd.edu: howardjp owned process doing -bs Date: Wed, 7 Jul 1999 15:44:48 -0400 (EDT) From: Jamie Howard To: Dag-Erling Smorgrav Cc: Archie Cobbs , freebsd-hackers@FreeBSD.ORG Subject: Re: Repalcement for grep(1) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 7 Jul 1999, Dag-Erling Smorgrav wrote: > Jamie Howard writes: > > On Sun, 4 Jul 1999, Archie Cobbs wrote: > > > There are two special cases- of bracket expressions: the > > > bracket expressions `[[:<:]]' and `[[:>:]]' match the null > > > string at the beginning and end of a word respectively. > > > Perhaps this will help with -w? > > Yes, I received a patch from Simon Burge which implements this. It also > > beats using [^A-Za-z] and [A-Za-z$] as I was and GNU grep does. > > No, because there are scripts out there (e.g. ports/Mk/bsd.port.mk) > which rely on this behaviour. I just knocked this down to just freebsd-hackers because this only applies here (so far). I am not the internationalization expert, but doesn't [^A-Za-z] and [A-Xa-z$] limit you to just English and other Roman languages? Won't [[:<:]] and [[:>:]] be languages independent, presuming regex supports it? Jamie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message