RE: [Dev-C++] Automatic wildcard expansion
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-07-12 09:38:32
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Abhijit Shylanath > Sent: Friday, July 12, 2002 12:09 PM > To: Dev-C++ Mailing List > Subject: [Dev-C++] Automatic wildcard expansion > > > If I run > makedict e d:\code\makedict\dict.txt *.txt > my program receives it as > > -Start-------------------------- > arg 0: makedict > arg 1: e > arg 2: d:\code\makedict\dict.txt > arg 3: dict.txt > -Stop--------------------------- > > I recall that this behaviour is a GCC feature, and I can bypass it by > quoting the argument, but how can I explicitly tell the > compiler to disable > such expansion? You can't rely on specific behaviour. This mechanism could not work at all (in which case argc would be 0). You can make some trick to avoid th/e above behaviour, like using a parameter -all instead of * and do the job internally. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |