Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 106

Fish shell: how to exit on error (bash set -e)

$
0
0

On bash you can use set -e inside a script in order to exit on error:

set -ecd unexisting-folderecho "this line will not be printed"

But on fish shell set -e is used to erase variables:

set FOO barset -e FOOecho {$FOO} # prints newline

What is the equivalent of Bash set -e on Fish?


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>