arithmetic-operator
Bash && arithmetic operator
Logical AND yields 1 when both operands are nonzero; short-circuits on zero left operand.
Formal Syntax & Structure
bash syntaxbash
$(( 6 && 3 ))Return Value
integer
Logical AND yields 1 when both operands are nonzero; short-circuits on zero left operand.
Working Example
Example Snippetbash
printf '%s\n' "$(( 6 && 3 ))"