3 ms·
You can also solve that problem with double square brackets: [[ "$foo" = 1 && "$bar" = 2 ]]
by michaelhoffman 14y ago
You can also solve that problem with double square brackets:
[[ "$foo" = 1 && "$bar" = 2 ]]
- avleenvig 14y agoReally, we should be using double square brackets. We're not aiming for POSIX compliance and double square solves a lot of problems.