In bash, you can use set -e inside a script to exit with an error:
set -e cd unexisting-folder echo "this line will not be printed"
But for a fish shell, set -e used to erase variables:
set FOO bar set -e FOO echo {$FOO} # prints newline
What is the equivalent of bash set -e for Fish?
bash shell fish error-handling
mdesantis
source share