On bash you can use set -e inside a script in order to exit on error:
set -e
cd unexisting-folder
echo "this line will never be printed"
But on fish shell set -e is used to erase variables:
set FOO barset -e FOO
echo {$FOO} # prints newline
What is the equivalent of Bash set -e on Fish?
--
Maurizio De Santis
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users