zsh-workers
 help / color / mirror / code / Atom feed
* [BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set
@ 2023-07-12  7:54 Marlon Richert
  2023-07-12 13:05 ` Mikael Magnusson
  0 siblings, 1 reply; 4+ messages in thread
From: Marlon Richert @ 2023-07-12  7:54 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-25  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12  7:54 [BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set Marlon Richert
2023-07-12 13:05 ` Mikael Magnusson
2023-08-25  6:55   ` Marlon Richert
2023-08-25  9:04     ` Lawrence Velázquez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).