30 Jun
2010
30 Jun
'10
10:01 p.m.
On Wed, Jun 30, 2010 at 17:56, Thomas Bächler <thomas@archlinux.org> wrote:
Am 30.06.2010 23:47, schrieb Victor Lowther:
It is worth 10 - 30% speedup whenever you want to compare something.
Where do you get this from? I always used [ ], and I found it sufficient. Why is [[ ]] faster?
-if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then +if [[ $USECOLOR = YES || $USECOLOR = yes ]]; then
Why do you get rid of the quoting here? Quoting is nice.
Quoting is not needed in [[ and it makes the code uglier.