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

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