]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
execve.2: Since Linux 5.1, the limit on the #! line is 255 chars (rather than 127)
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 19 Jun 2019 19:06:11 +0000 (21:06 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 19 Jun 2019 19:06:11 +0000 (21:06 +0200)
Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/execve.2

index c8ea89c92fb90c6a63c6e7485d2549fa163fd413..42ca64722a20f5f795bb1c83b9532a18797268af 100644 (file)
@@ -614,8 +614,13 @@ In such cases, the kernel kills the process with a
 signal.
 .\"
 .SS Interpreter scripts
-A maximum line length of 127 characters is allowed for the first line in
-an interpreter script.
+The kernel imposes a maximum length on the text that follows the
+"#!" characters at the start of a script;
+characters beyond the limit are ignored.
+Before Linux 5.1, the limit is 127 characters.
+Since Linux 5.1,
+.\" commit 6eb3c3d0a52dca337e327ae8868ca1f44a712e02
+the limit is 255 characters.
 .PP
 The semantics of the
 .I optional-arg