Date: Mon, 4 Nov 2024 06:55:54 +0300 From: =?UTF-8?B?T8SfdXo=?= <oguzismailuy...@gmail.com> Message-ID: <cah7i3lrjfhfgcejhmrmwd7mu2hu4r_oumvszw3esrc+3xqg...@mail.gmail.com>
| On Monday, November 4, 2024, Martin D Kealey <mar...@kurahaupo.gen.nz> | wrote: | | > POSIX says that the execve syscall reads the name of an interpreter (and | > options) from a '#!' line, | > | | Where? Good question. While POSIX has (just barely) reached beyond the point of believing that #! does not exist (which it used to try and pretend for a long time) it still resolutely avoids spexifying anything at all about how it works, or what it does, when it does appear. In fact it goes so far as to demand that a strictly conforming shell script must not have '#!' as its first two characters (even though the '#' there would normally just indicate a comment up to the next \n) as it is not specified how a script that starts with #! is processed. kre