Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Clarifying man page(s)
- X-seq: zsh-workers 49845
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Jim <linux.tech.guy@xxxxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Clarifying man page(s)
- Date: Mon, 14 Mar 2022 10:58:49 +0000 (GMT)
- Archived-at: <https://zsh.org/workers/49845>
- Importance: Medium
- In-reply-to: <CA+rB6GLYvbaNXiH7wFkbCN5xrV+GFBLCxdtt5Z5v74JOw=f5Gg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CA+rB6GLYvbaNXiH7wFkbCN5xrV+GFBLCxdtt5Z5v74JOw=f5Gg@mail.gmail.com>
On 13 March 2022 at 15:14 Jim <linux.tech.guy@xxxxxxxxx> wrote:
> To the point/question: Should zshoptions man page have a clear statement
> at the very
> beginning that "options" can have a local "scope"? "Scope" is only
> mentioned later in in
> three options. This on my part is assuming "scope" is the correct word to
> use here.
It's easy to add.
pws
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index cf46007..443676b 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -41,6 +41,9 @@ will be treated just as `tt(-f)', but the string `tt(-f i)' is an error.
This is because many systems which implement the `tt(#!)' mechanism for
calling scripts do not strip trailing whitespace.
+It is possible for options to be set within a function scope. See the
+description of the option tt(LOCAL_OPTIONS) below.
+
texinode(Description of Options)(Option Aliases)(Specifying Options)(Options)
sect(Description of Options)
cindex(options, description)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author