Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 22:28:47 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215209 - head/bin/sh
Message-ID:  <201011122228.oACMSlb3025784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



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