diff options
author | Rene Engelhard <rene@debian.org> | 2022-09-07 21:34:42 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-09-08 14:43:53 +0200 |
commit | fd42cea5f301a10cdeaa29959f04b111de534132 (patch) | |
tree | 0bfa9e9f22d63dcbb6eeafc6002752d9ff20399e /bin | |
parent | 09e499e64ec4acb24c9524c8aacabc6182124442 (diff) |
replace egrep/fgrep calls with grep -E/grep -F
as egrep/fgrep is deprecated since long amd grep 3.8+ now actually warns
(e.g. "egrep: warning: egrep is obsolescent; using grep -E")
Change-Id: I5b10f05dffdd09081deb05cef974e3cdb2907315
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139614
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-german-comments | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find-german-comments b/bin/find-german-comments index a38b435ce870..175af6f22420 100755 --- a/bin/find-german-comments +++ b/bin/find-german-comments @@ -235,7 +235,7 @@ class Parser: # Change into the given dir, so "git ls-tree" does work. os.chdir(directory) - sock = os.popen(r"git ls-tree -r HEAD --name-only |egrep '\.(c|cc|cpp|cxx|h|hxx|mm)$'") + sock = os.popen(r"git ls-tree -r HEAD --name-only | grep -E '\.(c|cc|cpp|cxx|h|hxx|mm)$'") lines = sock.readlines() sock.close() |