On Sat, 9 Nov 2013, Maurizio De Santis wrote: > 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?
I don't think we have it, as such. You would have to use `; or exit 1` after lines you are worried about, or check $status. I suppose the argument could be made that error handling should be explicit. David Adam fish committer zanc...@ucc.gu.uwa.edu.au ------------------------------------------------------------------------------ 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