diff options
| author | Shawn Landden <shawn@git.icu> | 2019-06-21 07:52:25 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-06-21 08:02:37 +0200 |
| commit | 60f16bf2fe6bd2d2d001d0a41936e778b1e7e3f6 (patch) | |
| tree | 5f048638cc5452e72a03f395dab9d94815a09c4b | |
| parent | 44dceef0cdfa7efa4de28e2824ff3f441f2f3237 (diff) | |
| download | man-pages-60f16bf2fe6bd2d2d001d0a41936e778b1e7e3f6.tar.gz | |
execve.2: Add more detail about Shebangs
Signed-off-by: Shawn Landden <shawn@git.icu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/execve.2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/man2/execve.2 b/man2/execve.2 index 42ca64722a..799e48035e 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -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. |
