diff options
author | ivan tkachenko <me@ratijas.tk> | 2021-09-23 15:49:41 +0300 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-09-29 00:09:25 +0200 |
commit | 99d915330aa470e5ca723084f54910d82aec444d (patch) | |
tree | b346f354be40898ba683de9b8ead6f33ddb07b26 /Doc/Zsh | |
parent | 02f75cf38699b99340c1d2c8f5a9d9aaf81432e7 (diff) | |
download | zsh-99d915330aa470e5ca723084f54910d82aec444d.tar.gz zsh-99d915330aa470e5ca723084f54910d82aec444d.tar.xz zsh-99d915330aa470e5ca723084f54910d82aec444d.zip |
49440: Make double-flag parameter expansion syntax more discoverable in docs
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index eea147bde..d40d1b439 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -872,7 +872,8 @@ of the string tt($-) and the array tt($*) respectively. If tt(POSIX_IDENTIFIERS) is set, then braces are required for the tt(#) to be treated in this fashion. ) -item(tt(${^)var(spec)tt(}))( +xitem(tt(${^)var(spec)tt(})) +item(tt(${^^)var(spec)tt(}))( pindex(RC_EXPAND_PARAM, toggle) cindex(array expansion style, rc) cindex(rc, array expansion style) @@ -895,7 +896,8 @@ happening later. If word splitting is also in effect the tt($var[)var(N)tt(]) may themselves be split into different list elements. ) -item(tt(${=)var(spec)tt(}))( +xitem(tt(${=)var(spec)tt(})) +item(tt(${==)var(spec)tt(}))( pindex(SH_WORD_SPLIT, toggle) cindex(field splitting, sh style, parameter) cindex(sh, field splitting style, parameter) @@ -911,7 +913,8 @@ Note that splitting is applied to var(word) in the assignment forms of var(spec) em(before) the assignment to var(name) is performed. This affects the result of array assignments with the tt(A) flag. ) -item(tt(${~)var(spec)tt(}))( +xitem(tt(${~)var(spec)tt(})) +item(tt(${~~)var(spec)tt(}))( pindex(GLOB_SUBST, toggle) Turn on the tt(GLOB_SUBST) option for the evaluation of var(spec); if the `tt(~)' is doubled, turn it off. When this option is |