Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh function breaks after error
- X-seq: zsh-users 27500
- From: Thomas Lauer <thomas.lauer@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: zsh function breaks after error
- Date: Thu, 10 Feb 2022 13:55:29 +0000
- Archived-at: <https://zsh.org/users/27500>
- In-reply-to: <CAH+w=7ZxtKCSCsmLqQovDGtPF-cbMi6um2JbVQhi7Zu8qOpZJQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Organization: TL
- References: <l3850ht4v4mopd3asrkeuvpad65k2gi0j3@tlc.com> <CAH+w=7YwMwbo-HDOceDKX=oU4LQw9xg2Y_d9fWO9zk5hPummcA@mail.gmail.com> <e1u70ht8crjuu5l4f4saggu1rji626uns3@tlc.com> <CAH+w=7ZxtKCSCsmLqQovDGtPF-cbMi6um2JbVQhi7Zu8qOpZJQ@mail.gmail.com>
> > Well... as I wrote in my OP: if I replace the rofi call with a tiny
> > script that does precisely the same thing but *always* exits with error
> > code 0, all works as it should. So I am pretty sure that rofi exiting
> > with 1 is indeed the culprit here.
>
> If you use your tiny script and replace "exit 0" with "exit $?" (so it
> exits with the same status as rofi) does that still reproduce the
> problem?
Yes, the function still breaks.
> Incidentally, what's the $ZSH_PATCHLEVEL ?
"debian/5.7.1-1"
It's no big deal but I find it strange that I can't have a function
which executes to the very end when an external call fails.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author