Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set
On 7/12/23, Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
> % print $ZSH_PATCHLEVEL
> zsh-5.9-0-g73d3173
> % setopt
> interactive
> monitor
> norcs
> shinstdin
> zle
> % () { setopt printexitvalue; setopt }
> interactive
> monitor
> printexitvalue
> norcs
> shinstdin
> zle
> % setopt
> interactive
> monitor
> norcs
> shinstdin
> zle
> % setopt printexitvalue
> % setopt
> interactive
> monitor
> printexitvalue
> norcs
> shinstdin
> zle
> %
>
> Also, setopt should list it _after_ norcs, not before (presuming we
> want it to list options alphabetically).
options are sorted ignoring the "no" prefix.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author