This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Asterisk expansion...
- To: <gnu-win32 at cygnus dot com>
- Subject: RE: Asterisk expansion...
- From: "Leo Mauro" <lmauro at scientist dot com>
- Date: Sat, 25 Jul 1998 13:01:22 -0400
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
"gnu-win32-request@cygnus.com" with one line of text: "help".