Hi. I'd like to help, but I don't understand your goal. Please elaborate.
On Sat, Sep 7, 2019, at 06:20, Marcin Zajączkowski wrote: > Hi. I would like to have my command send notification about failure and > keep/propagate the original error code. > > I was thinking about something like: > > my_command || call_error_handler and exit -1 > or > > my_command || begin call_error_handler; exit -1; end > > to have at least a command marked as failed (with -1). However, it exits > the whole Fish. > > How can I do it? > > Marcin > > P.S. In the top-notch edition it could also extended to memorize the > original $status in a variable and return is at the end. > > -- > https://blog.solidsoft.info/ - Working code is not enough > > > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users