[TUHS] origin of the name 'glob'

Steve Johnson 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
seen it,



[1] mailto:jnc at mercury.lcs.mit.edu
[2] http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man7/glob.7

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170707/9dea521e/attachment.html>

More information about the TUHS mailing list