(Usually) The right way. if [ -z ${var+x} ]; then echo "var is unset"; else echo "var is set to '$var'"; fi. where ${var+x} is a parameter expansion which ...
確定! 回上一頁