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 Wed, Jul 12, 2023 at 4:05 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> 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.

Fair enough, but the rest of my bug report is still valid.




Messages sorted by: Reverse Date, Date, Thread, Author