expr: fix, first parse then enfshut

This commit is contained in:
Hiltjo Posthuma 2015-04-20 23:28:21 +02:00 committed by sin
parent 7be2449aa9
commit ce145a39a7
1 changed files with 5 additions and 1 deletions

6
expr.c
View File

@ -261,11 +261,15 @@ usage(void)
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
int ret;
ARGBEGIN { ARGBEGIN {
default: default:
usage(); usage();
} ARGEND; } ARGEND;
ret = !parse(argv, argc);
enfshut(3, stdout, "<stdout>"); enfshut(3, stdout, "<stdout>");
return !parse(argv, argc);
return ret;
} }