From: Marlon Richert <marlon.richert@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
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 [thread overview]
Message-ID: <CAHLkEDu9cShcudkLirnhU+heb2wmTAtne1e8huknUqC1LZ2FMQ@mail.gmail.com> (raw)
% 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).
next reply other threads:[~2023-07-12 7:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-12 7:54 Marlon Richert [this message]
2023-07-12 13:05 ` Mikael Magnusson
2023-08-25 6:55 ` Marlon Richert
2023-08-25 9:04 ` Lawrence Velázquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHLkEDu9cShcudkLirnhU+heb2wmTAtne1e8huknUqC1LZ2FMQ@mail.gmail.com \
--to=marlon.richert@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).