commit ce145a39a75052fc5b8014b3409cc79b9c812421
parent 7be2449aa9281c072dc2de33a8818a548dc40ad2
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 20 Apr 2015 23:28:21 +0200
expr: fix, first parse then enfshut
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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, "<stdout>");
- return !parse(argv, argc);
+
+ return ret;
}