sort: Return 2 on usage error

This commit is contained in:
Robert Ransom 2012-05-20 14:38:52 +00:00
parent c0f60a6f3d
commit 7565af0e31

2
sort.c
View File

@ -31,7 +31,7 @@ main(int argc, char *argv[])
uflag = true; uflag = true;
break; break;
default: default:
exit(EXIT_FAILURE); exit(2);
} }
if(optind == argc) if(optind == argc)
getlines(stdin); getlines(stdin);