lazyrunner50
Programmer
Ok, so this is a simple question, but I can't find any explanation on google. Anyway, what is the difference between [ and [[ for test conditions? For instance:
and
Code:
if [[ -z $myVar ]] && [[ -z $myVar2 ]]; then
do something
fi
Code:
if [ -z $myVar ] && [ -z $myVar2 ]; then
do something
fi