You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be valuable to explicitly talk about whitespace requirements in [ ] and [[ ]] conditionals--this tripped me up when learning Bash and I know it's a pain point for a lot of developers.
The way I like to think about it is that [ and [[ are commands/builtins (like echo, etc), as opposed to being part of Bash syntax. For this reason, the command name and each of its arguments must be separated by whitespace:
I think it would be valuable to explicitly talk about whitespace requirements in
[ ]
and[[ ]]
conditionals--this tripped me up when learning Bash and I know it's a pain point for a lot of developers.The way I like to think about it is that
[
and[[
are commands/builtins (likeecho
, etc), as opposed to being part of Bash syntax. For this reason, the command name and each of its arguments must be separated by whitespace:The text was updated successfully, but these errors were encountered: