aboutsummaryrefslogtreecommitdiff
path: root/bin/sh
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2009-09-20 21:42:38 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2009-09-20 21:42:38 +0000
commit9764aa4157dcd6fa8faa4a08a3d66cd7719a06f5 (patch)
tree0bbe72357759b0a0e0d91ee9ceaf7a58961af162 /bin/sh
parentcf6884f47d311de5263854fbdfb82d092199a5b9 (diff)
downloadsrc-9764aa4157dcd6fa8faa4a08a3d66cd7719a06f5.tar.gz
src-9764aa4157dcd6fa8faa4a08a3d66cd7719a06f5.zip
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
Notes
Notes: svn path=/head/; revision=197371
Diffstat (limited to 'bin/sh')
-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 461c3ca4d97e..2739dccdd8e7 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,