cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/21/02:25:09

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How do I pass * (astrix) over argv ?
Date: Mon, 20 Sep 1999 23:13:01 -0700
Organization: Harvey Mudd College
Lines: 23
Message-ID: <37E721ED.3782B3D3@hmc.edu>
References: <7s6rjn$gq7$1 AT nnrp1 DOT deja DOT com> <37E7036D DOT 3CD17002 AT mpx DOT com DOT au>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 937894412 23964 134.173.45.219 (21 Sep 1999 06:13:32 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 21 Sep 1999 06:13:32 GMT
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.13pre7 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

the stress tensor wrote:
> 
> hey there,
> 
>   the MS-DOS command interpreter translates the wildcards to the actual
> arguments.

Not quite true-- in the case of DJGPP it's done by the program itself. 
(Unix does handle it this way.)

But the net effect is similar, you're right.

>   you can avoid this by enclosing them in double quotes:

Correct.

>   example:   ls "*.*" will not list everything in yr directory - it will
> fail

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


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