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.awk4
1 files changed, 1 insertions, 3 deletions
diff --git a/awklib/eg/prog/egrep.awk b/awklib/eg/prog/egrep.awk
index 56d199c8..86b3cfda 100644
--- a/awklib/eg/prog/egrep.awk
+++ b/awklib/eg/prog/egrep.awk
@@ -90,9 +90,7 @@ function endfile(file)
}
END \
{
- if (total == 0)
- exit 1
- exit 0
+ exit (total == 0)
}
function usage( e)
{