summaryrefslogtreecommitdiff
path: root/libgo/mksigtab.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/mksigtab.sh')
-rw-r--r--libgo/mksigtab.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh
index 2b07dd491b1..c68b28be3af 100644
--- a/libgo/mksigtab.sh
+++ b/libgo/mksigtab.sh
@@ -29,7 +29,7 @@ addsig() {
echo " $1: $2,"
# Get the signal number and add it to SIGLIST
signum=`grep "const $1 = " gen-sysinfo.go | sed -e 's/.* = //'`
- if echo "$signum" | grep -q '^_SIG[A-Z0-9_]*$'; then
+ if echo "$signum" | grep '^_SIG[A-Z0-9_]*$' >/dev/null 2>&1; then
# Recurse once to obtain signal number
# This is needed for some MIPS signals defined as aliases of other signals
signum=`grep "const $signum = " gen-sysinfo.go | sed -e 's/.* = //'`