🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: grep 'RE botch' error

#1646
From: John Sloan
Date: Fri, 22 Aug 1986 19:20
20 lines
1588 bytes
> >	grep '[' file
> >
> >	gives a 'RE botch' error on our VAX-750 running 4.2BSD.
> >Narendra Mehta, 
> That's not a bug, '[' is special to grep, try '\[' to escape it.
> 	-Barry Shein, Boston University

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.
-- 
------------------------------------------------------------------------
John Sloan                         CSNET:      jsloan@WRIGHT.EDU
Wright State University            USENET:     ...!cbosgd!wright!jsloan
Computer Science and Engineering   ARPANET:    jsloan%wright@CSNET-RELAY
Dayton, OH 45435                   DECNET LAN: wright::jsloan
+1 513 873 2491, 2987              SMTP LAN:   jsloan@wright
UNIX is a registered trademark of AT&T.   Opinions expressed are my own.
  "I was a roadie for the Algorithmics on their 1986 Internet Tour"
Technical Details
Message-ID: <164@wright.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!caip!princeton!allegra!ulysses!mhuxr!mhuxt!houxm!ihnp4!cbosgd!wright!jsloan
References: <1080@bu-cs.bu-cs.BU.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!columbia!caip!princeton!allegra!ulysses!mhuxr!mhuxt!houxm!ihnp4!cbosgd!wright!jsloan
From: jsloan@wright.EDU (John Sloan)
Newsgroups: net.bugs.4bsd
Subject: Re: grep 'RE botch' error
Message-ID: <164@wright.EDU>
Date: Fri, 22-Aug-86 15:20:30 EDT
Article-I.D.: wright.164
Posted: Fri Aug 22 15:20:30 1986
Date-Received: Sat, 23-Aug-86 10:24:30 EDT
References: <1080@bu-cs.bu-cs.BU.EDU>
Organization: Wright State University, Dayton OH, 45435
Lines: 20