diff options
author | dg1727 <dg1727@protonmail.com> | 2020-04-12 01:26:25 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-04-12 01:26:40 +0000 |
commit | 6ec97e1d48d74371252c6c67a2076bc6b01a4084 (patch) | |
tree | d561e24321f75afd8ef243d24895316b62b2dc1e | |
parent | 66ee4918a1540ae3baf8077c216a2b36ccba76f4 (diff) | |
download | zsh-6ec97e1d48d74371252c6c67a2076bc6b01a4084.tar.gz zsh-6ec97e1d48d74371252c6c67a2076bc6b01a4084.tar.xz zsh-6ec97e1d48d74371252c6c67a2076bc6b01a4084.zip |
45661: docs: Clarify the effect of KSH_ARRAYS on the (I) subscript.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Doc/Zsh/params.yo | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 2d003e8a5..610e7a7e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-04-12 dg1727 <dg1727@protonmail.com> + + * 45661: Doc/Zsh/params.yo: docs: Clarify the effect of + KSH_ARRAYS on the (I) subscript. + 2020-04-09 Peter Stephenson <p.w.stephenson@ntlworld.com> * 45660: Src/builtin,c, Src/init.c: Delay initial setting of diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 8daf33d5e..8a6eb2446 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -399,6 +399,10 @@ Like `tt(i)', but gives the index of the last match, or all possible matching keys in an associative array. On failure substitutes 0, or the empty string for an associative array. This flag is best when testing for values or keys that do not exist. + +Note: If the option tt(KSH_ARRAYS) is in effect and no match is found, the +result is indistinguishable from the case when the first element of the array +matches. ) item(tt(k))( If used in a subscript on an associative array, this flag causes the keys |