From: Junio C Hamano Date: Wed, 28 Jun 2017 17:17:04 +0000 (-0700) Subject: t1450: use egrep for regexp "alternation" X-Git-Tag: v2.13.3~7^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/73fc2aadc748da8a5515345ab02657e4db7f66d4 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh index 8f52da2771..30e217dea2 100755 --- a/t/t1450-fsck.sh +++ b/t/t1450-fsck.sh @@ -541,7 +541,7 @@ test_expect_success 'fsck --name-objects' ' remove_loose_object $(git rev-parse julius:caesar.t) && test_must_fail git fsck --name-objects >out && tree=$(git rev-parse --verify julius:) && - grep "$tree (\(refs/heads/master\|HEAD\)@{[0-9]*}:" out + egrep "$tree \((refs/heads/master|HEAD)@\{[0-9]*\}:" out ) '