Conditionals in BashEdit
[
: alias for thetest
command, is POSIX and portable, supported by many shells[[
: a language keyword, supported by Bash/Zsh, additional features (eg. not necessary to quote variables etc)if
: nakedif
construct can be used to check if commands complete successfully (egif ! some_command; then ...; fi
)