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?