zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG] Shell option PRINT_EXIT_VALUE lost on function exit, even when LOCAL_OPTIONS is not set
Date: Wed, 12 Jul 2023 15:05:43 +0200	[thread overview]
Message-ID: <CAHYJk3SrHP0oKy_Kvc-5VpAwuK-8KjjzxFr2q7tDrAeWtkj46A@mail.gmail.com> (raw)
In-Reply-To: <CAHLkEDu9cShcudkLirnhU+heb2wmTAtne1e8huknUqC1LZ2FMQ@mail.gmail.com>

On 7/12/23, Marlon Richert <marlon.richert@gmail.com> 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.

-- 
Mikael Magnusson


  reply	other threads:[~2023-07-12 13:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-12  7:54 Marlon Richert
2023-07-12 13:05 ` Mikael Magnusson [this message]
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=CAHYJk3SrHP0oKy_Kvc-5VpAwuK-8KjjzxFr2q7tDrAeWtkj46A@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=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).