lhunath 1250858483 learn Usually it suffices to know whether a variable contains something: [[ $var ]], but to check whether it is truly unset, use: [[ $var || -z ${var-x} ]] HawkI 1314631475 forget HawkI 1314632081 learn unset undefines or erases a variable or function from the current shell process. unset , unset myscript, testing if something is unset: Usually it suffices to know whether a variable contains something: [[ $var ]], but to check whether it is truly unset, use: [[ $var || -z ${var-x} ]] . See isset for more ormaaj 1333508323 forget ormaaj 1333508345 learn Unset undefines a variable or function from the current shell process. See: http://wiki.bash-hackers.org/commands/builtin/unset http://fvue.nl/wiki/Bash:_Unset. Testing if a variable is set: [[ ${var+_} ]]. See !isset yitz_ 1444153255 forget yitz_ 1444153272 learn Unset undefines a variable or function from the current shell process. See: http://wiki.bash-hackers.org/commands/builtin/unset http://fvue.nl/wiki/Bash:_Unset . Testing if a variable is set: [[ ${var+_} ]]. See !isset