t/test-lib-functions.sh: avoid "test <cond> -a/-o <cond>"
commit0cfe6fd252ee0898d832823bdab66d3cc986f3df
authorElia Pinto <gitter.spiros@gmail.com>
Fri, 6 Jun 2014 14:56:02 +0000 (6 07:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jun 2014 22:53:42 +0000 (9 15:53 -0700)
tree8f5e5e8da4f814fc7a3be751d87a006e138f0050
parent795fcb0e5eafacdb038652f538af922e956cf5fe
t/test-lib-functions.sh: avoid "test <cond> -a/-o <cond>"

The construct is error-prone; "test" being built-in in most modern
shells, the reason to avoid "test <cond> && test <cond>" spawning
one extra process by using a single "test <cond> -a <cond>" no
longer exists.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh