diff options
author | jilles <jilles@FreeBSD.org> | 2010-11-12 22:28:47 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-11-12 22:28:47 +0000 |
commit | b057fb40bbfd0841356318bece078bf7dfeb51b6 (patch) | |
tree | b430c98fef6e599bf123ea1e816e4aae270b6f5a /bin/sh | |
parent | c3225b5eaae133c81e5029596d87998c2005051d (diff) | |
download | FreeBSD-src-b057fb40bbfd0841356318bece078bf7dfeb51b6.zip FreeBSD-src-b057fb40bbfd0841356318bece078bf7dfeb51b6.tar.gz |
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.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/sh.1 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 062a9da..0e6b069 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1268,19 +1268,22 @@ consists of all characters until the matching .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: |