about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-02-15 10:13:46 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-02-15 10:13:46 +0000
commite8e9708d4c31fff44190ae0521cba8ed8ce2b896 (patch)
tree55e09c5d99c9593bfb064691bde636e6068d10ba
parente22cb5192286b6eab13fe7d1ac5f0e8a28e5252e (diff)
downloadzsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.gz
zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.xz
zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.zip
Document that quoting may be used in the word portion of the
${name:+word} and ${name:-word} expansions.
-rw-r--r--Doc/Zsh/expn.yo6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 22cd653e8..b1950caa1 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -453,6 +453,8 @@ item(tt(${)var(name)tt(:-)var(word)tt(}))(
 If var(name) is set and is non-null then substitute its
 value; otherwise substitute var(word). If var(name) is
 missing, substitute var(word).
+Note that you can use standard shell quoting in the var(word) value to
+selectively override any field splitting that may be active.
 )
 xitem(tt(${)var(name)tt(:=)var(word)tt(}))
 item(tt(${)var(name)tt(::=)var(word)tt(}))(
@@ -470,6 +472,8 @@ If var(word) is omitted, then a standard message is printed.
 item(tt(${)var(name)tt(:PLUS())var(word)tt(}))(
 If var(name) is set and is non-null then substitute
 var(word); otherwise substitute nothing.
+Note that you can use standard shell quoting in the var(word) value to
+selectively override any field splitting that may be active.
 )
 enditem()
 
@@ -853,7 +857,7 @@ on the right.
 item(tt(s:)var(string)tt(:))(
 Force field splitting (see the option tt(SH_WORD_SPLIT)) at the
 separator var(string).  Note that a var(string) of two or more
-characters means all must all match in sequence; this differs from
+characters means that all of them must match in sequence; this differs from
 the treatment of two or more characters in the tt(IFS) parameter.
 )
 enditem()