From owner-freebsd-hackers Mon Jul 5 11: 8:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bubba.whistle.com (s205m7.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 3E81D14C2F for ; Mon, 5 Jul 1999 11:08:22 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id LAA54803; Mon, 5 Jul 1999 11:07:47 -0700 (PDT) From: Archie Cobbs Message-Id: <199907051807.LAA54803@bubba.whistle.com> Subject: Re: Repalcement for grep(1) In-Reply-To: from Jamie Howard at "Jul 4, 99 09:32:22 pm" To: howardjp@wam.umd.edu (Jamie Howard) Date: Mon, 5 Jul 1999 11:07:47 -0700 (PDT) Cc: archie@whistle.com, freebsd-hackers@FreeBSD.org, tech-userlevel@netbsd.org, tech@openbsd.org X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message