From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Leo Mauro" To: Subject: RE: Asterisk expansion... Date: Sat, 25 Jul 1998 10:30:00 -0000 Message-id: <000001bdb7ed$da031850$1e6e31cf@leo-nt.rd.telesystech.com> References: <19980725181402.12991@mundook.cs.mu.OZ.AU> X-SW-Source: 1998-07/msg00565.html 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".