svn commit: r197371 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sun Sep 20 21:42:38 UTC 2009


Author: jilles
Date: Sun Sep 20 21:42:38 2009
New Revision: 197371
URL: http://svn.freebsd.org/changeset/base/197371

Log:
  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

Modified:
  head/bin/sh/sh.1

Modified: head/bin/sh/sh.1
==============================================================================
--- head/bin/sh/sh.1	Sun Sep 20 19:32:10 2009	(r197370)
+++ head/bin/sh/sh.1	Sun Sep 20 21:42:38 2009	(r197371)
@@ -375,6 +375,10 @@ introduces a comment if used at the begi
 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,


More information about the svn-src-all mailing list