]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
execve.2: Add more detail about Shebangs
authorShawn Landden <shawn@git.icu>
Fri, 21 Jun 2019 05:52:25 +0000 (07:52 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 21 Jun 2019 06:02:37 +0000 (08:02 +0200)
Signed-off-by: Shawn Landden <shawn@git.icu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/execve.2

index 42ca64722a20f5f795bb1c83b9532a18797268af..799e48035e363492da749a79a9b56bcf95c01fc4 100644 (file)
@@ -337,6 +337,12 @@ For portable use,
 should either be absent, or be specified as a single word (i.e., it
 should not contain white space); see NOTES below.
 .PP
+The interpreter is passed the absolute filename to the file. There is no way to get the argv[0]
+that was passed to the kernel via execve(2).
++.\" See the P - preserve-argv[0] option.
++.\" Documentation/admin-guide/binfmt-misc.rst
++.\" https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
+.PP
 Since Linux 2.6.28,
 .\" commit bf2a9a39639b8b51377905397a5005f444e9a892
 the kernel permits the interpreter of a script to itself be a script.