Suppose I am writing the following in a bash
script:
if [ -z $a ] || [ -z $b ] ; then
usage
fi
It works but I would like to write it with short-circuiting
as follows:
[ -z $a ] || [ -z $b ] || usage
Unfortunately it does not work. What am I missing ?