From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=FREEMAIL_FROM, FREEMAIL_REPLYTO_END_DIGIT,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 9921 invoked from network); 7 Apr 2020 23:21:41 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 7 Apr 2020 23:21:41 -0000 Received: (qmail 21446 invoked by alias); 7 Apr 2020 23:21:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45661 Received: (qmail 5219 invoked by uid 1010); 7 Apr 2020 23:21:28 -0000 X-Qmail-Scanner-Diagnostics: from mail2.protonmail.ch by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25772. spamassassin: 3.4.4. Clear:RC:0(185.70.40.22):SA:0(-2.2/5.0):. Processed in 2.184236 secs); 07 Apr 2020 23:21:28 -0000 X-Envelope-From: dg1727@protonmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.protonmail.ch designates 185.70.40.22 as permitted sender) Date: Tue, 07 Apr 2020 23:20:46 +0000 To: "zsh-workers@zsh.org" From: dg1727 Reply-To: dg1727 Subject: Patch: Doc: clarify effect of KSH_ARRAYS on subscript (I) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Following is a Git diff of a proposed update to the documentation. In future, if I have a small item like this to suggest, I intend to try to = combine it with other small items so as not to make too much mailing-list t= raffic. (I make no promises about this.) This first minor update is just to try out the process. Doc: clarify effect of KSH_ARRAYS on subscript (I) diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 8daf33d5e..8682ec448 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -397,7 +397,9 @@ associative array. item(tt(I))( 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 +the empty string for an associative array. If option tt(KSH_ARRAYS) is in +effect and no match is found, the result is indistinguishable from the cas= e +when the first element of the array matches. This flag is best when testing for values or keys that do not exist. ) item(tt(k))( Many thanks. -dg1727