zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Thomas Lauer <thomas.lauer@virgin.net>
Cc: Bart Schaefer <schaefer@brasslantern.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: zsh function breaks after error
Date: Thu, 10 Feb 2022 14:59:41 +0100	[thread overview]
Message-ID: <CAN=4vMqx49BLiDJ13dqDgaHiSSvH96=mq2PUV3MgcAXt8c1Q_w@mail.gmail.com> (raw)
In-Reply-To: <s16a0htkge5ug0f7aqqscfkq0d9couek3s@tlc.com>

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

On Thu, 10 Feb 2022 at 14:56, Thomas Lauer <thomas.lauer@virgin.net> wrote:

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


What happens if you add `emulate -L zsh` (without quotes) at the top of the
function?

Roman.

[-- Attachment #2: Type: text/html, Size: 1097 bytes --]

  reply	other threads:[~2022-02-10 14:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 17:16 Thomas Lauer
2022-02-09 15:18 ` Bart Schaefer
2022-02-09 18:45   ` Thomas Lauer
2022-02-09 20:16     ` Bart Schaefer
2022-02-10 13:55       ` Thomas Lauer
2022-02-10 13:59         ` Roman Perepelitsa [this message]
2022-02-10 16:20           ` Thomas Lauer
2022-02-10 16:48             ` Roman Perepelitsa
2022-02-10 17:20               ` Thomas Lauer
2022-02-10 21:26                 ` Ray Andrews
2022-02-10 21:45                   ` Thomas Paulsen
2022-02-10 23:37                     ` Daniel Shahaf
2022-02-11 15:07                     ` Thomas Lauer
2022-02-11 14:58                   ` Thomas Lauer
2022-02-11 15:59                     ` Ray Andrews
2022-02-11 23:31                       ` Bart Schaefer
2022-02-12  3:39                         ` Ray Andrews
2022-02-22  3:58                         ` Matthew Martin
2022-02-12 16:45                       ` Thomas Lauer
2022-02-12 17:48                         ` Ray Andrews

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='CAN=4vMqx49BLiDJ13dqDgaHiSSvH96=mq2PUV3MgcAXt8c1Q_w@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=thomas.lauer@virgin.net \
    --cc=zsh-users@zsh.org \
    --subject='Re: zsh function breaks after error' \
    /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

Code repositories for project(s) associated with this 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).