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

> From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
> 
> This means that err_return option is set in your interactive zsh. This
> is likely the result of invoking a function that has `setopt
> err_return` in it without `emulate -L zsh` and without `setopt
> local_options`. That function needs to be fixed. For example, you
> could replace `setopt err_return` with `emulate -L zsh -o err_return`.
> 
> You can read about zsh options and `emulate -L` here:
> https://zsh.sourceforge.io/Doc/Release/Options.html

Yep. Indeed, I have err_return set in my .zshrc (there are so many
options there that I have no idea when or even why I did include this).
Removed and things now work w/o "emulate -L zsh".

Appreciate your explanation and help. Tom


  reply	other threads:[~2022-02-10 17:21 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
2022-02-10 16:20           ` Thomas Lauer
2022-02-10 16:48             ` Roman Perepelitsa
2022-02-10 17:20               ` Thomas Lauer [this message]
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=t4ia0hhhtfrq5vg133rts7a4uf9c8qvl8t@tlc.com \
    --to=thomas.lauer@virgin.net \
    --cc=roman.perepelitsa@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@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).