Difference between parentheses and brackets in Bash conditionals
The tests you had listed : Single Parenthesis – ( … ) is creating a subshell Double Parenthesis – (( … )) is for arithmetic operation Single Square Bracket – [ … ] is the syntax for the POSIX test Double Square Brackets – [[ … ]] is the syntax for bash conditional expressions (similar … Read more