From ce145a39a75052fc5b8014b3409cc79b9c812421 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 20 Apr 2015 23:28:21 +0200 Subject: [PATCH] expr: fix, first parse then enfshut --- expr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/expr.c b/expr.c index b1995c1..5e4f19d 100644 --- a/expr.c +++ b/expr.c @@ -261,11 +261,15 @@ usage(void) int main(int argc, char *argv[]) { + int ret; + ARGBEGIN { default: usage(); } ARGEND; + ret = !parse(argv, argc); enfshut(3, stdout, ""); - return !parse(argv, argc); + + return ret; }