diff tests/test-check-sdist.t @ 6668:02f8c88f3d59

tests: replace obsolescent egrep with grep -E This avoids the warning “egrep: warning: egrep is obsolescent; using grep -E” on my Arch Linux system. This is similar to 7e5be4a7cda7 in core.
author Manuel Jacob <me@manueljacob.de>
date Fri, 02 Feb 2024 00:09:51 +0100
parents 4f0ec124224f
children aa51f19c71f6
line wrap: on
line diff
--- a/tests/test-check-sdist.t	Thu Feb 01 23:58:40 2024 +0100
+++ b/tests/test-check-sdist.t	Fri Feb 02 00:09:51 2024 +0100
@@ -34,8 +34,8 @@
   hg-evolve-*.tar.gz (glob)
 
   $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files
-  $ egrep '^tests/test-.*\.(t|py)$' files > test-files
-  $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files
+  $ grep -E '^tests/test-.*\.(t|py)$' files > test-files
+  $ grep -E -v '^tests/test-.*\.(t|py)$' files > other-files
   $ wc -l other-files
   146 other-files
   $ wc -l test-files
@@ -56,7 +56,7 @@
   docs/tutorial/README.rst
   hgext3rd/topic/README
 
-  $ egrep '(gitlab|contrib|hack|format-source)' files
+  $ grep -E '(gitlab|contrib|hack|format-source)' files
   [1]
   $ fgrep netlify files
   [1]