From 9764aa4157dcd6fa8faa4a08a3d66cd7719a06f5 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 20 Sep 2009 21:42:38 +0000 Subject: [PATCH] Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway. PR: bin/25542 MFC after: 2 weeks --- bin/sh/sh.1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 461c3ca4d97..2739dccdd8e 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -375,6 +375,10 @@ introduces a comment if used at the beginning of a word. The word starting with .Ql # and the rest of the line are ignored. +.Pp +.Tn ASCII +.Dv NUL +characters (character code 0) are not allowed in shell input. .Ss Quoting Quoting is used to remove the special meaning of certain characters or words to the shell, such as operators, whitespace, keywords,