What I want is simply to do something if the first variable of the script is empty, in a case statement.Unfortunately I spent yet a certain amount of time searching for the solution but didn't find it. Here is my code:case $1 in     [[ -z $1 ]]) echo something ;; esac
Test variable in a bash case statement
bash;shell script