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

Re: zsh function breaks after error



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