t/t4102-apply-rename.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>
Elia Pinto committed
Jun 6, 2014 at 07:55 UTC
4399345d5e491b6c432f6b3b12aabca5609d19ce
1 file changed
+1
-1
t/t4102-apply-rename.sh
+1
-1
@@ -52,6 +52,6 @@ EOF
52
53
test_expect_success 'apply copy' \
54
'git apply --index --stat --summary --apply test-patch &&
55
- test "$(cat bar)" = "This is bar" -a "$(cat foo)" = "This is foo"'
55
+ test "$(cat bar)" = "This is bar" && test "$(cat foo)" = "This is foo"'
56
57
test_done