Article View: comp.sys.amiga.tech
Article #6567Re: Pipes
From: Pete Goodeve
Date: Mon, 12 Nov 1990 21:19
Date: Mon, 12 Nov 1990 21:19
27 lines
1600 bytes
1600 bytes
In <7594.273e8c18@jetson.uh.edu> (12 Nov),
Jason L. Tibbitts III (honp9@jetson.uh.edu) writes:
>
> It is required that the '|' used as logical-or be enclosed with its arguments
> in parenthesis. In some cases, the usual AmigaDos commands will accept the OR
> symbol without parenthesis, but this is not consistent with the spec.
Sorry, but the spec does NOT say that. The '|' simply divides the current
character-group into two alternatives, whatever that group may be.
Parentheses delimit INNER groups, but the outermost group is just the
string itself. So this is perfectly OK:
copy thisfile|thatfile|the_other to df0:
It's probably worthwhile giving the original reference for the algorithm
again (though 2.0 has now extended it considerably):
Martin Richards, "A Compact Function for Regular Expression
Pattern Matching"
[Software--Practice and Experience, vol 9 (1979) 527-534]
>
> Do the pattern-matching functions in 2.0 require the parenthesis grouping?
... I hope not!
-- Pete --
Technical Details
Message-ID:
<1990Nov12.211929.21081@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!think.com!linus!agate!violet.berkeley.edu!peteReferences:
<99.273647DB@myamiga.UUCP> <1990Nov8.173836.19620@agora.uucp> <7594.273e8c18@jetson.uh.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!think.com!linus!agate!violet.berkeley.edu!pete From: pete@violet.berkeley.edu (Pete Goodeve) Newsgroups: comp.sys.amiga.tech Subject: Re: Pipes Message-ID: <1990Nov12.211929.21081@agate.berkeley.edu> Date: 12 Nov 90 21:19:29 GMT References: <99.273647DB@myamiga.UUCP> <1990Nov8.173836.19620@agora.uucp> <7594.273e8c18@jetson.uh.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 27