Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active August 28, 2023 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelmaeuer/2179edb1287a2ab8ba6a1a848ac640e0 to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/2179edb1287a2ab8ba6a1a848ac640e0 to your computer and use it in GitHub Desktop.

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 to test but more powerful)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment