diff options
| -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. |
