Is this the way to negate an expression, or should I put the negation inside [[ ]]
?
if ! [[ -z "$k" ]]; then
printf '%s\n' \
"[[ -z \"\$k\" ]] returns false a test for zero length"
fi
Is this the way to negate an expression, or should I put the negation inside [[ ]]
?
if ! [[ -z "$k" ]]; then
printf '%s\n' \
"[[ -z \"\$k\" ]] returns false a test for zero length"
fi