projects/linux·commit 2c91ce92

Merge tag 'coccinelle-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

2c91ce92 · Linus Torvalds <[email protected]> · 2022-12-23 13:56:41 -08:00

Pull coccicheck update from Julia Lawall:
 "Modernize use of grep in coccicheck:

  Use 'grep -E' instead of 'egrep'"

* tag 'coccinelle-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
  scripts: coccicheck: use "grep -E" instead of "egrep"
Commit
2c91ce92c6d99fe8ed0fde2e67c19d40f062e8a3
Parents
51094a24 · 2d63e6a3

Merge commit. Changes below are compared with the first parent: 51094a24.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
scripts/coccicheckmodified+1−1View file

scripts/coccicheck

View file
diff --git a/scripts/coccicheck b/scripts/coccicheck
index caba0bf..2956fce 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -47,7 +47,7 @@ FLAGS="--very-quiet"
# inspected there.
#
# --profile will not output if --very-quiet is used, so avoid it.
-echo $SPFLAGS | egrep -e "--profile|--show-trying" 2>&1 > /dev/null
+echo $SPFLAGS | grep -E -e "--profile|--show-trying" 2>&1 > /dev/null
if [ $? -eq 0 ]; then
FLAGS="--quiet"
fi