More updates to the docs, and fixes to sync things with the docs.

-Erik
This commit is contained in:
Erik Andersen
2000-04-17 16:16:10 +00:00
parent 4fd10fc73b
commit e5b6c7dd9c
17 changed files with 182 additions and 65 deletions

View File

@@ -27,12 +27,18 @@ extern int yes_main(int argc, char **argv)
{
int i;
if (argc == 1)
if (argc >=1 && *argv[1]=='-') {
usage("yes [OPTION]... [STRING]...\n\n"
"Repeatedly outputs a line with all specified STRING(s), or `y'.\n");
}
if (argc == 1) {
while (1)
if (puts("y") == EOF) {
perror("yes");
exit(FALSE);
}
}
while (1)
for (i = 1; i < argc; i++)