grep 'RE botch' error
Arthur David Olson
ado at elsie.UUCP
Wed Aug 27 03:09:26 AEST 1986
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 at seismo.ARPA
DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list