diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-09-20 21:42:38 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2009-09-20 21:42:38 +0000 |
commit | 9764aa4157dcd6fa8faa4a08a3d66cd7719a06f5 (patch) | |
tree | 0bbe72357759b0a0e0d91ee9ceaf7a58961af162 /bin/sh | |
parent | cf6884f47d311de5263854fbdfb82d092199a5b9 (diff) | |
download | src-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.1 | 4 |
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, |