This is a quick port of BSD glob(), with minor modifications for OS/2
HPFS, intended to be used with emx 0.8d or later.  The globbing rules
are as follows:

1.	A * matches zero or more characters, with the exception of a
leading dot (".").

2.	A ? matches exactly one character, also excepting a leading dot.

3.	Square brackets are used to specify a range of characters.
E.g., *[abcd]* will match any filename ending with a, b, c, or d.

4.	A - can be used inside square brackets as a shorthand
notation.  E.g, [a-d] is equivalent to [abcd].

5.	A ! is used as the negation character (tcsh users take note!
The negation character is not ^) if it is the first character in a
pair of square brackets.  E.g., *.[!ch] will match files with names
matching the pattern *.?, except those matching *.c or *.h.

6.	You may use either / or \ as the directory separator.

7.	There is no provision for quoting characters since the
backslash is used as a directory separator.  This doesn't seem to be a
problem since * and ? are not valid characters for an HPFS filename,
and you can use [, ], and ! without quoting, if you have files or
directories whose names contain such characters.

8.	To specify a filename with embedded blanks, use double quotes
around the filename, in the usual manner.  Note * will match such
filenames without having to enclose it in quotes.

9.	You can prepend drive names to the pattern.  For example, you
can use the pattern e:* d:*/*\* to match all files and directories
in the default directory of drive e: and all files and directories
that are two subdirectories below the default directory in drive d:.

10.	Unlike unix glob(), case is ignored.


Known bugs:

1.	The pathnames returned by glob() are all in lower case.

2.	All alphabets in glob patterns must be supplied in lower case.

3.	The glob function was renamed to oglob() to avoid conflicts
with the glob() in less.  You may wish to change it back to glob().

4.	I'm sure there are others that I haven't noticed.  If you find
them, please let me know (preferably with your patches for the bugs :-)


John Kim (jhrv@midway.uchicago.edu)
