"Glob"

Dennis Ritchie dmr at alice.att.com
Thu Apr 18 16:54:13 AEST 1991


I am the only person who ever knew the true etymology of "glob."
Unfortunately, I have forgotten it.

I do remember, of course, that the program in early PDP-11 Unix
that expanded ?* for the shell was called /etc/glob, but the
detail that escapes is why, exactly, that name was picked.
Deep hypnotic therapy has revealed that it is cognate with
"global," and of this I am confident.  The naggingly lost detail
is the relationship of the name to the function.  I can only
guess that I reasoned that the * notation allowed commands
to apply globally to a directory.

BTW, the Jargon file is wrong in connecting /etc/glob with
the Bourne shell.  Bourne was the one who integrated file
expansion into his shell, and thereby obsoleted /etc/glob.
Also it's incorrect to say that globbing couldn't fit into
the early shells; in the 5th edition, /bin/sh was 4992 bytes,
/etc/glob 1280 bytes of program text.  Instead, the separation
was an early experiment in modularization and tool-use.

	Dennis Ritchie
	dmr at research.att.com



More information about the Comp.unix.questions mailing list