Blair Campbell wrote:
>> About command line limitation: NDOS/4DOS and newer command.com place
>> complete, untruncated command line into CMDLINE environemnt variable.
>>
>
> What does everybody think about FreeCOM supporting this? Of course,
> it is possibly useless without C runtimes supporting it.
>
> Which leads to another question: how do DJGPP-compiled shells pass
> arguments? Cuz in BASH, the commandline can be as long as you want.
> (Provided you're calling other DJGPP programs, of course). FreeCOM
> could possibly support this way to improve compatibility with DJGPP
> apps.
>
From DJGPP info (Knowledge Base, Hidden Features, Features):
* Long command lines.
When DOS invokes programs, it limits the length of the command
line to 126 characters (excluding the program's name). This is a
ridiculously small limit; it doesn't even allow to compile GCC,
since many commands in GCC `Makefile's are much longer.
Therefore, DJGPP provides a mechanism to pass long command lines to
child programs. The actual command is stored in the transfer
buffer, and a pointer to that buffer is passed to the child
program instead of the command line itself. The startup code of
the child program then retrieves the actual command-line arguments
and puts them into the `argv[]' array passed to `main'.
DJGPP also supports the so-called "response file" method of
passing long command lines, whereby the command line is stored on
a disk file, and the name of that file is passed as
[EMAIL PROTECTED]'. For example:
ar cq libmylib.a @files-list
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel