Mercurial > evolve
comparison 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 |
comparison
equal
deleted
inserted
replaced
6667:31e157a5cfe2 | 6668:02f8c88f3d59 |
---|---|
32 | 32 |
33 $ find hg-evolve-*.tar.gz -size +800000c | 33 $ find hg-evolve-*.tar.gz -size +800000c |
34 hg-evolve-*.tar.gz (glob) | 34 hg-evolve-*.tar.gz (glob) |
35 | 35 |
36 $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files | 36 $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files |
37 $ egrep '^tests/test-.*\.(t|py)$' files > test-files | 37 $ grep -E '^tests/test-.*\.(t|py)$' files > test-files |
38 $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files | 38 $ grep -E -v '^tests/test-.*\.(t|py)$' files > other-files |
39 $ wc -l other-files | 39 $ wc -l other-files |
40 146 other-files | 40 146 other-files |
41 $ wc -l test-files | 41 $ wc -l test-files |
42 ??? test-files (glob) | 42 ??? test-files (glob) |
43 $ fgrep debian files | 43 $ fgrep debian files |
54 README.rst | 54 README.rst |
55 docs/README | 55 docs/README |
56 docs/tutorial/README.rst | 56 docs/tutorial/README.rst |
57 hgext3rd/topic/README | 57 hgext3rd/topic/README |
58 | 58 |
59 $ egrep '(gitlab|contrib|hack|format-source)' files | 59 $ grep -E '(gitlab|contrib|hack|format-source)' files |
60 [1] | 60 [1] |
61 $ fgrep netlify files | 61 $ fgrep netlify files |
62 [1] | 62 [1] |