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
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;
}