aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/prog/egrep.awk
diff options
context:
space:
mode:
Diffstat (limited to 'awklib/eg/prog/egrep.awk')
-rw-r--r--awklib/eg/prog/egrep.awk7
1 files changed, 2 insertions, 5 deletions
diff --git a/awklib/eg/prog/egrep.awk b/awklib/eg/prog/egrep.awk
index 56d199c8..094bdea5 100644
--- a/awklib/eg/prog/egrep.awk
+++ b/awklib/eg/prog/egrep.awk
@@ -88,11 +88,8 @@ function endfile(file)
print
}
}
-END \
-{
- if (total == 0)
- exit 1
- exit 0
+END {
+ exit (total == 0)
}
function usage( e)
{