🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.4bsd
Article #1652

Re: grep 'RE botch' error

#1652
From: Arthur David Olson
Date: Tue, 26 Aug 1986 17:09
30 lines
1376 bytes
Index:	ucb/grep 4.1 Fix

Description:

> There is still a bug though: while [ is a special pattern operator to grep,
> a single [ as in the example causes my 4.2BSD grep to go into a loop issuing
> the "RE botch" error over and over. So while the error message is legitimate,
> the ungraceful nonrecovery is not.

Repeat-By:
	grep \[ /etc/passwd

Fix:
	Is to "ucbgrep.c"  As usual, the trade secret status of the code
	involved precludes a clearer posting.  The fix is the addition
	conditioned on "OLDVERSION" below; it goes at the end of the
	function "compile".

		    cerror:
			fprintf(stderr, "RE error\n");
		#ifndef OLDVERSION
			exit(2);
		#endif
		}
--
Bug/s is a Volkswagen/Warner Brothers trademark.
Wright is a Safeway trademark.
--
	UUCP: ..decvax!seismo!elsie!ado   ARPA: elsie!ado@seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.
Technical Details
Message-ID: <6199@elsie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!elsie!ado
References: <1080@bu-cs.bu-cs.BU.EDU> <164@wright.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: net.bugs.4bsd
Subject: Re: grep 'RE botch' error
Message-ID: <6199@elsie.UUCP>
Date: Tue, 26-Aug-86 13:09:26 EDT
Article-I.D.: elsie.6199
Posted: Tue Aug 26 13:09:26 1986
Date-Received: Wed, 27-Aug-86 10:06:08 EDT
References: <1080@bu-cs.bu-cs.BU.EDU> <164@wright.EDU>
Organization: NIH-LEC, Bethesda, MD
Lines: 30