delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/15/19:17:52

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: RE: argc/argv
15 Jan 1999 19:17:52 -0800 :
Message-ID: <19990115174433.4633.rocketmail.cygnus.gnu-win32@send106.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: "Haynes, Dan" <Haynes AT pwrh DOT com>, shijn AT tcc DOT com DOT cn, gnu-win32 AT cygnus DOT com

---"Haynes, Dan" <Haynes AT pwrh DOT com> wrote:
8< 
> The one gotcha with that scheme - if no files match the wildcard,
Borland
> just passes in the arguments untouched. So if you invoke your
program as
> "test *.c" and there are no .c files in the directory, argv[1] will
be set
> to "*.c" :-(
8<

That's also true with bash both on UNIX and WIN32 and is standard
globbing practice. :-)
==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd AT yahoo DOT com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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