From 587793f818be06ad10d31e6692982c1783ed49fd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 24 Mar 2022 10:35:29 +0000 Subject: 49845: man page clarification on option scope --- ChangeLog | 5 +++++ Doc/Zsh/options.yo | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index f915fbae5..4f82451e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-03-24 Peter Stephenson + + * 49845: Doc/Zsh/options.yo: clarify that options can be local + in function scope. + 2022-03-18 Matthew Martin * 49852: Completion/BSD/Command/_pfctl, diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index cf4600769..443676b78 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) -- cgit 1.4.1