Skip to content

Commit 637e5ad

Browse files
committed
refactor: use grep -E instead of egrep
Change-Id: Iedeb3433c5d27488e7de0199a7f3effe1d79c82a
1 parent fb04ddd commit 637e5ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plan9/mkerrors.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ errors=$(
126126
signals=$(
127127
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
128128
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
129-
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
129+
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
130130
sort
131131
)
132132

@@ -136,7 +136,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
136136
sort >_error.grep
137137
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
138138
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
139-
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
139+
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' |
140140
sort >_signal.grep
141141

142142
echo '// mkerrors.sh' "$@"

unix/mkerrors.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ errors=$(
642642
signals=$(
643643
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
644644
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
645-
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
645+
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
646646
sort
647647
)
648648

@@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
652652
sort >_error.grep
653653
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
654654
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
655-
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
655+
grep -Ev '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
656656
sort >_signal.grep
657657

658658
echo '// mkerrors.sh' "$@"

0 commit comments

Comments
 (0)