Author: jilles
Date: Fri Nov 12 22:28:47 2010
New Revision: 215209
URL: http://svn.freebsd.org/changeset/base/215209

Log:
  sh(1): Update for r214492. "${v+"hi}there"}".
  
  The part hi}there is not a quoted string but nevertheless the closing brace
  does not terminate the expansion.

Modified:
  head/bin/sh/sh.1

Modified: head/bin/sh/sh.1
==============================================================================
--- head/bin/sh/sh.1    Fri Nov 12 22:10:19 2010        (r215208)
+++ head/bin/sh/sh.1    Fri Nov 12 22:28:47 2010        (r215209)
@@ -1268,19 +1268,22 @@ consists of all characters until the mat
 .Ql } .
 Any
 .Ql }
-escaped by a backslash or within a single-quoted string, and characters in
+escaped by a backslash or within a single-quoted or double-quoted
+string, and characters in
 embedded arithmetic expansions, command substitutions, and variable
 expansions, are not examined in determining the matching
 .Ql } .
-Except for the variants with
+If the variants with
 .Ql + ,
 .Ql - ,
 .Ql =
 or
-.Ql ?\& ,
-any
+.Ql ?\&
+occur within a double-quoted string,
+as an extension there may be unquoted parts
+(via double-quotes inside the expansion);
 .Ql }
-within a double-quoted string is also not examined in determining the matching
+within such parts are also not examined in determining the matching
 .Ql } .
 .Pp
 The simplest form for parameter expansion is:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to