Bug 11890 – rdmd should read the whole first line if called with --shebang

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-10T00:27:19Z
Last change time
2024-12-13T18:15:46Z
Assigned to
No Owner
Creator
Andrea Fontana
Moved to GitHub: dmd#18750 →

Attachments

IDFilenameSummaryContent-TypeSize
1460rdmd-workaround_shebang_limit.patchworkaround shebang limittext/plain576

Comments

Comment #0 by advmail — 2014-01-10T00:27:19Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18750 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB