Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
michaelhoffman
· 14y ago · 0 comments
You can also solve that problem with double square brackets:
[[ "$foo" = 1 && "$bar" = 2 ]]
Comments
[–]
avleenvig
14y ago
Really, we should be using double square brackets. We're not aiming for POSIX compliance and double square solves a lot of problems.