delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/24/22:39:01

From: bandy AT aplcomm DOT jhuapl DOT edu (Mike Bandy)
Subject: Re: Asterisk expansion...
24 Jul 1998 22:39:01 -0700 :
Message-ID: <Pine.SOL.3.91.980724122420.10775C-100000.cygnus.gnu-win32@aplcomm.jhuapl.edu>
References: <7BEBE893ABDFD111AC3F00A0C96B159F5C4CD6 AT FMSMSX32>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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

- Raw text -


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