add ls; simpler pwd

This commit is contained in:
Connor Lane Smith
2011-05-26 04:01:20 +01:00
parent 273f150c84
commit 6ef3d9174b
9 changed files with 268 additions and 24 deletions

4
echo.c
View File

@@ -21,9 +21,9 @@ main(int argc, char *argv[])
for(; optind < argc; optind++) {
fputs(argv[optind], stdout);
if(optind+1 < argc)
fputc(' ', stdout);
putchar(' ');
}
if(!nflag)
fputc('\n', stdout);
putchar('\n');
return EXIT_SUCCESS;
}