[TUHS] origin of the name 'glob'

Doug McIlroy doug at cs.dartmouth.edu
Sun Jul 9 22:26:56 AEST 2017


Glob was an an accident. When Ken and Dennis wanted to put wildcards
(an anachronistic word--it wasn't used in the Unix lab at the time)
into the shell, there wasn't room, so they came up with the clever hack
of calling another process to do the work.

I have always understood that glob meant global because commands like
	rm *
would be applied to every file in a directory. A relationship to ed's
g command was clear, but not primary in my mind.

One curious fact is that from day one the word hase been pronounced glob,
not globe. (By contrast, creat has been variously pronounced cree-at
and create.)  It is also interesting to speculate on whether there would
be a glob library routine in Linux had glob only been an identifier in
sh.c rather than an entry in /bin.

I believe the simple * was borrowed from somewhere else. If the g command
had been the driving model, glob would probably have had ? and ?*, not
? and *. (It couldn't use ed's . because . was ubiquitous in file names.)

My etymology is somewhat different from Steve's. But I never asked the
originator(s). Steve, did you?

Doug



More information about the TUHS mailing list