📜  bash negate if - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:56.244000             🧑  作者: Mango

代码示例1
if [[ $? -ne 0 ]]; then       # -ne: not equal

if ! [[ $? -eq 0 ]]; then     # -eq: equal

if [[ ! $? -eq 0 ]]; then