fix arg parsing bug in echo with no arguments

This commit is contained in:
K. Lange 2018-04-24 20:25:49 +09:00 committed by Kevin Lange
parent a7cd9eb54b
commit b59f8e8aea

View File

@ -28,6 +28,7 @@ int main(int argc, char ** argv) {
start = i;
break;
} else {
start++;
if (argv[i][1] == 'h') {
usage();
return 1;