From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp parameter error... Date: Fri, 28 Jan 2000 09:35:25 +0200 Organization: NetVision Israel Lines: 17 Message-ID: <389146BD.74BB7C6B@is.elta.co.il> References: <20000128010651 DOT 15219 DOT 00000402 AT ng-cd1 DOT aol DOT com> NNTP-Posting-Host: ras1-p45.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 949044931 4139 62.0.172.47 (28 Jan 2000 07:35:31 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 28 Jan 2000 07:35:31 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com LarsNicolas wrote: > > When I tried to pass '...' (3 dots) to my program compiled in djgpp, something > like: > > C:\>myprog ... > > Djgpp returns just a single dot in argv[]! "..." is special in DJGPP: it expands to all the subdirectories of the current directory, recursively. What you see is the first element of the expansion, the "." directory. If you want to pass "..." verbatim to your program, surround it with quotes, exactly like you'd do with a wildcard characters "*", "?", etc. This is explained further in section 16.1 of the DJGPP FAQ list.