4 ms·
In bash or bash-like shells you always use the double square bracket tests! They support everything the regular test syntax does, but have some extra features t
by chlorion 4y ago
In bash or bash-like shells you always use the double square bracket tests! They support everything the regular test syntax does, but have some extra features that make them "safer" to use.
Some code style guides for Linux distros or work places like Google actually enforce this!