In a previous commit, `grep -o` was introduced as part of t7704. POSIX doesn't have that flag as defined and while it is a popular one is not available at least in the latest release of AIX. Use a sed equivalent that ought to be more portable. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@xxxxxxxxx> --- t/t7704-repack-cruft.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7704-repack-cruft.sh b/t/t7704-repack-cruft.sh index 2b0a55f8fd..3df6b53cd3 100755 --- a/t/t7704-repack-cruft.sh +++ b/t/t7704-repack-cruft.sh @@ -795,7 +795,7 @@ test_expect_success 'repack --write-midx includes cruft when necessary' ' test_path_is_file $(ls $packdir/pack-*.mtimes) && ls $packdir/pack-*.idx | sort >packs.all && - grep -o "pack-.*\.idx$" packs.all >in && + sed -n "s/.*\(pack-.*\.idx\)$/\1/p" packs.all >in && git multi-pack-index write --stdin-packs --bitmap <in && -- 2.50.0.53.g63c9ac04f7