Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Clarifying man page(s)



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