t/t4018: avoid two unnecessary sub-shell invocations
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brandon Casey committed
Sep 10, 2010 at 11:13 UTC
99f55ebc6757ec8777627142e7f8e1dc50f68d2c
1 file changed
+4
-4
t/t4018-diff-funcname.sh
+4
-4
@@ -37,13 +37,13 @@ for p in $builtin_patterns
37
do
38
test_expect_success "builtin $p pattern compiles" '
39
echo "*.java diff=$p" > .gitattributes &&
40
- ! ( git diff --no-index Beer.java Beer-correct.java 2>&1 |
41
- grep "fatal" > /dev/null )
40
+ ! { git diff --no-index Beer.java Beer-correct.java 2>&1 |
41
+ grep "fatal" > /dev/null; }
42
'
43
test_expect_success "builtin $p wordRegex pattern compiles" '
44
- ! ( git diff --no-index --word-diff \
44
+ ! { git diff --no-index --word-diff \
45
Beer.java Beer-correct.java 2>&1 |
46
- grep "fatal" > /dev/null )
46
+ grep "fatal" > /dev/null; }
47
'
48
done
49