comparison tests/test-check-sdist.t @ 6867:cdd1ffb88dd6 stable

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 203ca204abbf
children b3261527f770
comparison
equal deleted inserted replaced
6866:cfad86381358 6867:cdd1ffb88dd6
33 33
34 $ find hg?evolve-*.tar.gz -size +800000c 34 $ find hg?evolve-*.tar.gz -size +800000c
35 hg?evolve-*.tar.gz (glob) 35 hg?evolve-*.tar.gz (glob)
36 36
37 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > files 37 $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > files
38 $ egrep '^tests/test-.*\.(t|py)$' files > test-files 38 $ grep -E '^tests/test-.*\.(t|py)$' files > test-files
39 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files 39 $ grep -E -v '^tests/test-.*\.(t|py)$' files > other-files
40 $ wc -l other-files 40 $ wc -l other-files
41 ??? other-files (glob) 41 ??? other-files (glob)
42 $ wc -l test-files 42 $ wc -l test-files
43 ??? test-files (glob) 43 ??? test-files (glob)
44 $ fgrep debian files 44 $ fgrep debian files
55 README.rst 55 README.rst
56 docs/README 56 docs/README
57 docs/tutorial/README.rst 57 docs/tutorial/README.rst
58 hgext3rd/topic/README 58 hgext3rd/topic/README
59 59
60 $ egrep '(gitlab|contrib|hack|format-source)' files 60 $ grep -E '(gitlab|contrib|hack|format-source)' files
61 [1] 61 [1]
62 $ fgrep legacy.py files 62 $ fgrep legacy.py files
63 [1] 63 [1]
64 $ fgrep netlify files 64 $ fgrep netlify files
65 [1] 65 [1]