rdmd and shebang limits

Gary Willoughby dev at nomad.so
Thu Jan 9 04:23:04 PST 2014


On Thursday, 9 January 2014 at 11:42:32 UTC, Andrea Fontana wrote:
> On Thursday, 9 January 2014 at 11:25:19 UTC, Andrea Fontana 
> wrote:
>> I've just discovered that shebang line has a (very short) 
>> limit. Only 127 bytes are read from line
>>
>> It means that something like this doesn't work:
>>
>> #!/usr/bin/rdmd --shebang 
>> -I/asdasdasdasd/asdasdasdasd/asdasdasdasd 
>> -I/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/
>>
>> Is it possible to add a command line switch to read params 
>> from a simple file?
>>
>> For example:
>>
>>
>> main.d:
>> #!/usr/bin/rdmd --shebang --params ./rdmd-params.conf
>> void main() { }
>>
>> rdmd-params.conf:
>> -I/asdasdasdasd/asdasdasdasd/asdasdasdasd 
>> -I/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/qweqweqweqwe/
>
> Hmmm however that's not a good solution. It would be nice if 
> all what we need was embedded inside the source itself. Any 
> idea?

I thought DMD already supports a cmdfile? Look at the command 
line options.


More information about the Digitalmars-d mailing list