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;
|
||||
break;
|
||||
default:
|
||||
exit(EXIT_FAILURE);
|
||||
exit(2);
|
||||
}
|
||||
if(optind == argc)
|
||||
nl(stdin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user