📜  检查 bash 变量是否未定义 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:50:07.139000             🧑  作者: Mango
代码示例1
if test -z "$var"
then
echo "\$var is empty"
else
echo "\$var is NOT empty"
fi