Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

command line argument expansion

5 views
Skip to first unread message

steve

unread,
Jan 15, 2012, 8:03:54 PM1/15/12
to
I'm in a Windows7 'term' with gcc version 4.5.0. Is there any way I
can prevent command line arguments that contain a wildcard from being
expanded, other than enclosing them in single quotes? Example: I want
to pass the string "*.xyz" to my program by simply doing
c:\a.exe *.xyz

But what is happening is that the 'term' sees

c:\a.exe blah.xyz somefile.xyz corn.xyz cobb.xyz

etc.

The only (unsatisfactory) solution I've found so far is to enclose the
argument in single quotes

c:\a.exe '*.xyz'

and then have my program remove the quotes.

Any help appreciated.

--
0 new messages