🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #188973

Re: Directory Files

#188973
From: Bruce Barnett
Date: Fri, 24 May 1991 10:10
29 lines
1764 bytes
In article <1991May23.164059.8461@m.cs.uiuc.edu> joshi@m.cs.uiuc.edu (Anil Joshi) writes:

>   1. Why are there so many different reg.exp. suntaxes floating around?
>      Can't the people of UNIX come to some kind of agreement on this
>      issue?
 
Some utilities like vi(1) added the \< and \> expressions. Most
vendors haven't added this to sed, grep, etc. (SunOS has).

The problem is the use of (, ) and |
in sed, ed, grep, vi, etc.
	(, ), | - plain characters
	\( and \) mark groups


in awk, and egrep

	(, ) and | - special meanings
	\(, \), and \| - plain characters

therefore - ( and \( have opposite meanings in grep vs. egrep.

if egrep and awk were changed to use \(,  \)  and \| as special
meanings while (, ), and | were plain characters, then

	a. All the old code would break
	b. Everything would be compatable.
--
Bruce G. Barnett	barnett@crdgw1.ge.com	uunet!crdgw1!barnett
Technical Details
Message-ID: <BARNETT.91May24061045@grymoire.crd.ge.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!crdgw1!barnett
References: <1991May21.213101.22515@m.cs.uiuc.edu> <May.22.23.29.43.1991.19252@yoko.rutgers.edu> <1991May23.164059.8461@m.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,47d8d87ddf6099a4
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-24 10:32:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!crdgw1!barnett
From: barnett@grymoire.crd.ge.com (Bruce Barnett)
Newsgroups: gnu.emacs.help
Subject: Re: Directory Files
Message-ID: <BARNETT.91May24061045@grymoire.crd.ge.com>
Date: 24 May 91 10:10:45 GMT
References: <1991May21.213101.22515@m.cs.uiuc.edu>
 <May.22.23.29.43.1991.19252@yoko.rutgers.edu>
 <1991May23.164059.8461@m.cs.uiuc.edu>
Sender: news@crdgw1.crd.ge.com
Reply-To: barnett@crdgw1.ge.com
Organization: GE Corp. R & D, Schenectady, NY
Lines: 29
In-reply-to: joshi@m.cs.uiuc.edu's message of 23 May 91 16:40:59 GMT