Skip to content

Commit 99f55eb

Browse files
drafnelgitster
authored andcommitted
t/t4018: avoid two unnecessary sub-shell invocations
Signed-off-by: Brandon Casey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ac8cf5 commit 99f55eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t4018-diff-funcname.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ for p in $builtin_patterns
3737
do
3838
test_expect_success "builtin $p pattern compiles" '
3939
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; }
4242
'
4343
test_expect_success "builtin $p wordRegex pattern compiles" '
44-
! ( git diff --no-index --word-diff \
44+
! { git diff --no-index --word-diff \
4545
Beer.java Beer-correct.java 2>&1 |
46-
grep "fatal" > /dev/null )
46+
grep "fatal" > /dev/null; }
4747
'
4848
done
4949

0 commit comments

Comments
 (0)