Response files

Frank Benoit keinfarbton at googlemail.com
Sat Mar 21 05:48:24 PDT 2009


Jason House schrieb:
> Walter Bright Wrote:
> 
>> Frank Benoit wrote:
>>> DMD 1.041 on windows does support response files, that is a file
>>> containing arguments.
>>> On Linux dmd does not understand that.
>> The windows response files date back to the problem DOS/Windows had with 
>> only a very short command line length was allowed. So the arguments were 
>> put into a file instead.
>>
>> It's probably a good idea to do it for Linux, too.
> 
> Ick. Why? Command files are hacks for Window's shortcomings. Why spread such hacks across all platforms? The linux command line is already well adapted to handle this kind of thing.

Even in cygwin, there seems to be a 32k limit on the command line.
On Linux you can find out that limit with
getconf ARG_MAX (=>2097152 on my linux box)

This seems to be enough, however, 32k/64k are not.
There is a related bug, because the dmd response file workaround is not
working with >64k, see http://d.puremagic.com/issues/show_bug.cgi?id=2705





More information about the Digitalmars-d mailing list