From 9f5c279168775de67ef8b2cde9d0f6ff5f827839 Mon Sep 17 00:00:00 2001 From: kxxt Date: Sat, 1 Oct 2022 08:07:51 +0800 Subject: [PATCH] simplify egrep syntax Change-Id: I1d9ccc8dd70051a962a2cc5195cb08148d5c3549 --- plan9/mkerrors.sh | 4 ++-- unix/mkerrors.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plan9/mkerrors.sh b/plan9/mkerrors.sh index 4390e83b..70355d69 100755 --- a/plan9/mkerrors.sh +++ b/plan9/mkerrors.sh @@ -126,7 +126,7 @@ errors=$( signals=$( echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | - grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' | + grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' | sort ) @@ -136,7 +136,7 @@ echo '#include ' | $CC -x c - -E -dM $ccflags | sort >_error.grep echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | - grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' | + grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT' | sort >_signal.grep echo '// mkerrors.sh' "$@" diff --git a/unix/mkerrors.sh b/unix/mkerrors.sh index 06564795..bcfb55b6 100755 --- a/unix/mkerrors.sh +++ b/unix/mkerrors.sh @@ -642,7 +642,7 @@ errors=$( signals=$( echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | - grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | + grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' | sort ) @@ -652,7 +652,7 @@ echo '#include ' | $CC -x c - -E -dM $ccflags | sort >_error.grep echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | - grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | + grep -Ev 'SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64' | sort >_signal.grep echo '// mkerrors.sh' "$@"