A co-worker claimed recently in a code review that the [[ ]] construct is to be preferred over [ ] in constructs like
[[ ]]
[ ]
if [ \"`id -
In a nutshell, [[ is better because it doesn't fork another process. No brackets or a single bracket is slower than a double bracket because it forks another process.