Subject: RE: Asterisk expansion...
From: [email-masked] (Leo Mauro)

25 Jul 1998 16:22:30 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
To: <[email-masked]>

On Saturday, July 25, 1998 04:14 AM Fergus Henderson wrote:

> > > So why does it expand the glob in the first instance, and not unescape
> > > them in the second?
> >
> > It is the shells job to do the globbing not the programs.
>
> Then why does gnu-win32 do the globbing in the case of the command
> `echo *.*'?

Every program using the cygwin32 DLL includes startup code to check
whether it is running under a shell also using cygwin32.  If so, the code
assumes the shell already did argument globbing at it leaves the arg
list alone.  If not, the startup code does the argument processing and
globbing itself (it assumes the program is running under COMMAND.COM
or CMD.EXE).  This allows programs to take "wildcard" arguments
regardless of the shell they're running under.

Leo Mauro
Principal Scientist
TeleSys Technologies, Inc.

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".