summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2022-09-07 21:34:42 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-09-08 14:43:53 +0200
commitfd42cea5f301a10cdeaa29959f04b111de534132 (patch)
tree0bfa9e9f22d63dcbb6eeafc6002752d9ff20399e /bin
parent09e499e64ec4acb24c9524c8aacabc6182124442 (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-xbin/find-german-comments2
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()