When shebang is used on unix systems, only a small part of line is passed to interpreter (usually just 127 chars). Other chars on first line are discarded.
As suggested by Andrei, "if --shebang is the first argument, rdmd should just
read the whole first line and exec() a shell with it"
Forum post: http://forum.dlang.org/thread/[email protected]#post-lan4tt:244me:241:40digitalmars.com
Comment #1 by mihail.zenkov — 2014-12-19T16:30:03Z
Created attachment 1460
workaround shebang limit
Comment #2 by robert.schadek — 2024-12-13T18:15:46Z