diff options
author | jilles <jilles@FreeBSD.org> | 2009-10-29 21:13:57 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-10-29 21:13:57 +0000 |
commit | 0c15bcf2fc7577bae69bf7f444d8a44fc62bd4f4 (patch) | |
tree | f0bf7dc35596ba8135e2f82c0c53f156b1b551ce /bin | |
parent | 40471133fc57ce28f56ebe8896a4c82164fb788b (diff) | |
download | FreeBSD-src-0c15bcf2fc7577bae69bf7f444d8a44fc62bd4f4.zip FreeBSD-src-0c15bcf2fc7577bae69bf7f444d8a44fc62bd4f4.tar.gz |
MFC r197371: 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
Diffstat (limited to 'bin')
-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 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, |