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

[BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set



% 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).




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