From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: A simple program Date: 12 Oct 1997 22:24:18 GMT Organization: Oxford University, England Message-ID: <61rimi$4a3$1@news.ox.ac.uk> References: <3441334C DOT 49DD AT indy DOT net> NNTP-Posting-Host: sable.ox.ac.uk Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Chris Frolik (frolikcc AT indy DOT net) wrote: : Then I tried typing the following command line: : test *.c : And I didn't get the output I expected -- It printed out all of the : files in the directory with the extension ".C". I can see how this can : be useful -- but what if I want to pass "*.c" literally as the first : argument? (which I want to be able to do in a program I wrote). It : seems to me this is impossible to do. Is this because of DJGPP, or the : way DOS passes the command line? It's because djgpp globs the command line like Unix shells do, expanding wildcards automatically. If you want to use the parameter `*.c', you must enclose it in quotes. Alternatively, you can #include and define your own globbing function which does nothing. For full details, please see the FAQ or crt0.h itself. -- George Foot Merton College, Oxford