delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/25/16:22:30

From: lmauro AT scientist DOT com (Leo Mauro)
Subject: RE: Asterisk expansion...
25 Jul 1998 16:22:30 -0700 :
Message-ID: <000001bdb7ed$da031850$1e6e31cf.cygnus.gnu-win32@leo-nt.rd.telesystech.com>
References: <19980725181402 DOT 12991 AT mundook DOT cs DOT mu DOT OZ DOT AU>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019