Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 1999 16:20:38 -0700 (PDT)
From:      patl@phoenix.volant.org
To:        Jamie Howard <howardjp@wam.umd.edu>
Cc:        archie@whistle.com, freebsd-hackers@FreeBSD.org, tech-userlevel@netbsd.org, tech@openbsd.org
Subject:   Re: Repalcement for grep(1)
Message-ID:  <ML-3.4.931303238.7757.patl@asimov>
In-Reply-To: <199907051807.LAA54803@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

If you are using double quotes, as you show here, the shell may be
attempting a variable substitution.  Try single quotes.



-Pat


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ML-3.4.931303238.7757.patl>