The case of the supersized shebang
The case of the supersized shebang
Posted Feb 18, 2019 21:56 UTC (Mon) by grahamc (guest, #111068)In reply to: The case of the supersized shebang by grahamc
Parent article: The case of the supersized shebang
Posted Feb 18, 2019 22:25 UTC (Mon)
by rweikusat2 (subscriber, #117920)
[Link]
A 127 character limit is documented behaviour for #! and Linux execve (the final byte being occupied by a 0).
The patch (and everyone involved with that) is entirely to blame here as it changes documented, observable behaviour based on speculations about possible errors based on the wrong assumption that nothing but the kernel ever interprets the content of a #!-line. But perl has been intepreting this line since at least 5.004, probably longer (that's the earliest example I know of).
The case of the supersized shebang