rdmd and shebang limits

Andrea Fontana nospam at example.com
Fri Jan 10 00:20:02 PST 2014


On Friday, 10 January 2014 at 02:11:27 UTC, Jesse Phillips 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/
>
> If you need to specify import paths, your script is probably 
> fragile and broken on different linux/bsd distributions.
>
> I don't have a solution.

It was just an example, of course. It was the easiest way to add 
some long params :)


More information about the Digitalmars-d mailing list