Subject: Re: Repalcement for grep(1)
To: Jamie Howard <email@example.com>
From: Archie Cobbs <firstname.lastname@example.org>
Date: 07/05/1999 11:07:47
Jamie Howard writes:
> > 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. I am
> still having trouble with -x though. It turns out that even if I specify
> a commandline with a pattern of the form "^pattern$", it fails. If I
> specify "^pattern" it works. If I specify "pattern$" it does not. I have
> yet to find a case where my version will sucessfully match when a $ is at
> the end. Has anyone encountered anything like this before?
Are you sure you're stripping out the newline and carriage return?
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com