Skip to content

Commit

Permalink
45661: docs: Clarify the effect of KSH_ARRAYS on the (I) subscript.
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1727 authored and danielshahaf committed Apr 12, 2020
1 parent 66ee491 commit 6ec97e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions Doc/Zsh/params.yo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ec97e1

Please sign in to comment.