[..](..)
, use &&
instead of -a
.[[ "$1" = "-v" -a -z "$2" ]]
[[ "$1" = "-v" && -z "$2" ]]
-a
for logical AND is not supported in a [[ .. ]]
expression. Use &&
instead.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.