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
1 changed files with 1 additions and 1 deletions

2
sort.c
View File

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