Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!vecpyr!amd!amdcad!decwrl!glacier!mips!dce From: dce@mips.UUCP (David Elliott) Newsgroups: net.bugs.4bsd Subject: Re: grep 'RE botch' error Message-ID: <640@mips.UUCP> Date: Fri, 22-Aug-86 20:36:49 EDT Article-I.D.: mips.640 Posted: Fri Aug 22 20:36:49 1986 Date-Received: Sun, 24-Aug-86 05:14:37 EDT References: <191@clan.UUCP> Reply-To: dce@mips.UUCP (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 26 In article <191@clan.UUCP> naren@clan.UUCP (Narendra Mehta) writes: > > grep '[' file > > gives a 'RE botch' error on our VAX-750 running 4.2BSD. If the fix >has already been posted, could someone please mail me the diffs? Thanks. The fix is to put 'exit(2)' after the line fprintf(stderr, "RE botch\n"); in compile(), and the line fprintf(stderr, "RE error\n"); in advance(). This only applies to /usr/ucb/grep in 4.2 and 4.3. Without these, you get an 'RE error' message followed by a whole slew of 'RE botch' messages. There isn't any reason for grep to keep going if the RE compiles wrong, anyway. Admittedly, when I first saw this bug reported, I fired off a note to Narendra saying it wasn't a bug. Like a fool (sorry Barry), I didn't try it out first (I did this last year as well, an event Dave Sherman may remember). David