Subject: Asterisk expansion...
From: [email-masked] (Robertson, Jason V)

24 Jul 1998 04:13:51 -0700
Message-ID: <7BEBE893ABDFD111AC3F00A0C96B159F5C4CD6.cygnus.gnu-win32@FMSMSX32>
Mime-Version: 1.0
Content-Type: text/plain
To: [email-masked]

Hi,

There seems to be an inconsistency in how * is interpreted.  When you
run, say, 'echo.exe' from the commandline you get the following:
C:> echo *.*
<Contents of C: are listed>
C:> echo \*.\*
\*.\*

So why does it expand the glob in the first instance, and not unescape
them in the second?  And doesn't this mean it's impossible to echo the
string:
*.*
from cmd?

Running from sh behaves as expected:
$ echo *.*
<contents of pwd are listed>
$ echo \*.\*
*.*

Any ideas?  The reason this is causing problems is that we have a
wrapper around these binaries and it's clueless as to what's expected of
it because it seems indeterminate with respect to commandline expansion.
Is there some hook whereby the tools know if they're being run from
another Cygnus tool so they don't expand the command line?

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