public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrew Dalgleish <andrewd@axonet.com.au>
To: earnie_boyd@yahoo.com
Cc: gnu-win32@cygnus.com
Subject: RE: Asterisk expansion...
Date: Tue, 28 Jul 1998 05:54:00 -0000	[thread overview]
Message-ID: <91A8FD196436D1118EC2006008186C960B2D9F@server1.axonet.com.au> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]

> I know from the experience of my mingw32-sup package that cmd.exe and
> commmand.com do globbing, it is not as robust though.  For example:
> `ls' doesn't do any globbing, it only reports on a list of files given
> it on stdin.  I ported it to native win32 using mingw32.
[Andrew Dalgleish]  
cmd/command do NOT do globbing.

Some compiler/linker packages may do globbing in the run-time startup
code, so from your code it seems as if the globbing had been done by the
shell.

I can't speak for mingw32, but from the Microsoft help:

Expanding Wildcard Arguments 
Microsoft Specific ®

When running a C program, you can use either of the two wildcards - the
question mark (?) and the asterisk (*) - to specify filename and path
arguments on the command line. 

Command-line arguments are handled by a routine called _setargv (or
_wsetargv in the wide-character environment), which by default does not
expand wildcards into separate strings in the argv string array. You can
replace the normal _setargv routine with a more powerful version of
_setargv that does handle wildcards by linking with the SETARGV.OBJ
file. If your program uses a wmain function, link with WSETARGV.OBJ. 

To link with SETARGV.OBJ or WSETARGV.OBJ, use the /link option. For
example: 

cl typeit.c /link setargv.obj

The wildcards are expanded in the same manner as operating system
commands. (See your operating system user's guide if you are unfamiliar
with wildcards.) Enclosing an argument in double quotation marks (" ")
suppresses the wildcard expansion. Within quoted arguments, you can
represent quotation marks literally by preceding the
double-quotation-mark character with a backslash (\). If no matches are
found for the wildcard argument, the argument is passed literally. 

END Microsoft Specific

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

             reply	other threads:[~1998-07-28  5:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-28  5:54 Andrew Dalgleish [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-07-31 12:10 Earnie Boyd
1998-07-31  3:03 Earnie Boyd
1998-07-29 17:43 Andrew Dalgleish
1998-07-28  0:57 Robertson, Jason V
1998-07-27 15:12 ` Michael Weiser
1998-07-27 14:23 Earnie Boyd
1998-07-27 14:23 ` Fergus Henderson
1998-07-27  9:00 Earnie Boyd
1998-07-27  9:00 ` Fergus Henderson
     [not found] <35B93BE2.2642EDA3@home.com>
1998-07-25 18:10 ` Jason V Robertson
1998-07-27 14:23   ` Michael Weiser
1998-07-24 12:58 Earnie Boyd
1998-07-25  1:22 ` Fergus Henderson
1998-07-25 10:30   ` Leo Mauro
1998-07-23 15:30 Robertson, Jason V
1998-07-24 11:17 ` Matthias Morche
1998-07-24 12:58 ` Mike Bandy
1998-07-25  0:08 ` Michael Hirmke
1998-07-25  4:14   ` Fergus Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91A8FD196436D1118EC2006008186C960B2D9F@server1.axonet.com.au \
    --to=andrewd@axonet.com.au \
    --cc=earnie_boyd@yahoo.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).