This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Asterisk expansion...



On Thu, 23 Jul 1998, Robertson, Jason V wrote:

> 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?

echo '*.*'

Strings put in single quotes are not expanded by the shell.

	Mike
--
Mike Bandy                  |  As cool as the pale wet leaves
michael.bandy@jhuapl.edu    |                  of lily-of-the-valley
Johns Hopkins University    |  She lay beside me in the dawn.
Applied Physics Laboratory  |      -Ezra Pound

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]