diff options
| author | Wayne Davison <wayned@users.sourceforge.net> | 2006-02-15 10:13:46 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-02-15 10:13:46 +0000 |
| commit | e8e9708d4c31fff44190ae0521cba8ed8ce2b896 (patch) | |
| tree | 55e09c5d99c9593bfb064691bde636e6068d10ba | |
| parent | - Some changes to handle ${1+"$@"} being fixed. (diff) | |
| download | zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.gz zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.bz2 zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.lz zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.xz zsh-e8e9708d4c31fff44190ae0521cba8ed8ce2b896.tar.zst 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.yo | 6 |
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() |
