Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh function breaks after error



> From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
> 
> 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




Messages sorted by: Reverse Date, Date, Thread, Author