nl: Return 2 on usage error
This commit is contained in:
parent
572dcc2b83
commit
c0f60a6f3d
2
nl.c
2
nl.c
@ -36,7 +36,7 @@ main(int argc, char *argv[])
|
|||||||
sep = optarg;
|
sep = optarg;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
exit(EXIT_FAILURE);
|
exit(2);
|
||||||
}
|
}
|
||||||
if(optind == argc)
|
if(optind == argc)
|
||||||
nl(stdin);
|
nl(stdin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user