delorie.com/archives/browse.cgi | search |
From: | the stress tensor <entropic AT mpx DOT com DOT au> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: How do I pass * (astrix) over argv ? |
Date: | Tue, 21 Sep 1999 14:02:53 +1000 |
Organization: | Optus Internet |
Lines: | 33 |
Message-ID: | <37E7036D.3CD17002@mpx.com.au> |
References: | <7s6rjn$gq7$1 AT nnrp1 DOT deja DOT com> |
NNTP-Posting-Host: | dialup-wdc248249.mpx.com.au |
Mime-Version: | 1.0 |
X-Trace: | news1.mpx.com.au 937886560 1889 198.142.248.249 (21 Sep 1999 04:02:40 GMT) |
X-Complaints-To: | abuse AT mpx DOT com DOT au |
NNTP-Posting-Date: | 21 Sep 1999 04:02:40 GMT |
X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
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 |
hey there, the MS-DOS command interpreter translates the wildcards to the actual arguments. you can avoid this by enclosing them in double quotes: example: ls "*.*" will not list everything in yr directory - it will fail hope this helps :) daniel. hank_heng AT hotmail DOT com wrote: > > Hello, > > I'm using DJGPP, and I notice that if I do something like this : > > myprog *.* > > *.* actually copy all available file name that found in that > directory and store it in argv[1], argv[2], argv[3] ... and so on... > > I don't want this to happen, so how do I pass '*.*' over the command > line and receive '*.*' in argv[1] instead of bunches of file names. > > Thanks For Reading This And Please Help Me Out. :) > > -Hank > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |