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

Reply via email to