有没有办法让我的bash脚本终止于第一个返回非零状态的命令?
我知道我可以用它来链接它&&:
&&
cd /stuff && echo 'what's up' && ....
还有另外一种方法吗?
bash shell
bash ×1
shell ×1