[TUHS] origin of the name 'glob'
scj at yaccman.com
Sat Jul 8 13:04:22 AEST 2017
Doug would probably be a better source, but, as you know, grep stands
for global regular expression print. This is a literal translation
into words of a common idiom in vi (and ed before that): g/xxx/p
which prints all the lines that match xxx. The g means that it finds
all lines, rather than just searching for one.
Since glob tends to match more than one thing, but not in the usual
way, I suspect that it is a shortening of "global regular expression
print" (with no print, and not, strictly speaking, the usual regular
expression syntax either)...
As to why regular expressions are called "regular" expressions, that
happened long before Unix...
----- Original Message -----
"Clem Cole" <clemc at ccc.com>
"Noel Chiappa" <jnc at mercury.lcs.mit.edu>
"TUHS main list" <tuhs at minnie.tuhs.org>
Fri, 7 Jul 2017 13:37:21 -0400
Re: [TUHS] origin of the name 'glob'
This is matches my memory/was the way I learned it - ie glob was just
short for "global" (expression).
Steve / Doug any memories?
On Fri, Jul 7, 2017 at 12:55 PM, Noel Chiappa <jnc at mercury.lcs.mit.edu
> From: Ron Minnich
> Why was it called glob? I always wondered.
Something about global expressions.
I recall reading about this somewhere; I tried looking in the man
but it didn't go into any detail. I don't know where I could have
 mailto:jnc at mercury.lcs.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the TUHS