Date: Fri, 13 Dec 2002 13:14:36 -0500 Message-Id: <200212131814.gBDIEau12246@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (ajo AT andrew DOT cmu DOT edu) Subject: Re: Bug in command-line globbing References: Reply-To: djgpp AT delorie DOT com > * Arguments are split at whitespace and stripped of quotes before > being passed to the function. Can you write "echo" in DJGPP? You want to override __crt0_setup_arguments, found in src/libc/crt0/c1args.c [1] Note that it will be ENTIRELY up to you do hunt down the DOS command line buffer after the environment block in low memory, and do ALL the parsing yourself. You may also want to look up _crt0_startup_flags [2] and see if any of those flags would be useful to you, rather than doing it all yourself. [1] http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/crt0/c1args.c [2] http://www.delorie.com/djgpp/doc/libc-2.02/libc_113.html