Could someone explain please why the following simple script does not terminate on error status?
I would expect that false would return with error status and cause the script to stop as I use set -e
set -e
false && true
echo $?
echo Done
Output:
1
Done
while this one does:
set -e
false
echo $?
echo Done
Output is empty