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
- X-seq: zsh-workers 51924
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set
- Date: Wed, 12 Jul 2023 10:54:58 +0300
- Archived-at: <https://zsh.org/workers/51924>
- List-id: <zsh-workers.zsh.org>
% 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