t1450: use egrep for regexp "alternation"
GNU grep allows "\(A\|B\)" as alternation in BRE, but this is an extension not understood by some other implementations of grep (Michael Kebe reported an breakage on Solaris). Rewrite the offending test to ERE and use egrep instead. Noticed-by: Michael Kebe <michael.kebe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jun 28, 2017 at 10:17 UTC
73fc2aadc748da8a5515345ab02657e4db7f66d4
1 file changed
+1
-1
t/t1450-fsck.sh
+1
-1
@@ -541,7 +541,7 @@ test_expect_success 'fsck --name-objects' '
541
remove_loose_object $(git rev-parse julius:caesar.t) &&
542
test_must_fail git fsck --name-objects >out &&
543
tree=$(git rev-parse --verify julius:) &&
544
- grep "$tree (\(refs/heads/master\|HEAD\)@{[0-9]*}:" out
544
+ egrep "$tree \((refs/heads/master|HEAD)@\{[0-9]*\}:" out
545
)
546
'
547