How to view current shell/sh/bash status to know if it is set -e or set +e?

前端 未结 0 1559
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 15:28

We use set -e to halt a shell script if error occurs, and use set +e to turn it off.

My question is how to know the current status of this -

相关标签:
回答
  • 消灭零回复
提交回复
热议问题