summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-09-20 21:42:38 +0000
committerjilles <jilles@FreeBSD.org>2009-09-20 21:42:38 +0000
commit5dd8113f7f3c0393f362b6352a4c663f8810f59f (patch)
tree0bbe72357759b0a0e0d91ee9ceaf7a58961af162 /bin
parent43e8e65f56c2941a00f4eadb5df600673c32b905 (diff)
downloadFreeBSD-src-5dd8113f7f3c0393f362b6352a4c663f8810f59f.zip
FreeBSD-src-5dd8113f7f3c0393f362b6352a4c663f8810f59f.tar.gz
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
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/sh.14
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 461c3ca..2739dcc 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,
OpenPOWER on IntegriCloud