📜  bash test boolean - Shell-Bash 代码示例

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

代码示例1
the_world_is_flat=true
# ...do something interesting...
if [ "$the_world_is_flat" = true ] ; then
    echo 'Be careful not to fall off!'
fi