Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Oct 2009 17:16:11 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r197748 - stable/7/bin/sh
Message-ID:  <200910041716.n94HGBGk080191@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Oct  4 17:16:11 2009
New Revision: 197748
URL: http://svn.freebsd.org/changeset/base/197748

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

Modified:
  stable/7/bin/sh/   (props changed)
  stable/7/bin/sh/sh.1

Modified: stable/7/bin/sh/sh.1
==============================================================================
--- stable/7/bin/sh/sh.1	Sun Oct  4 16:30:33 2009	(r197747)
+++ stable/7/bin/sh/sh.1	Sun Oct  4 17:16:11 2009	(r197748)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910041716.n94HGBGk080191>