projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix looping bug, use fullRead
[oweals/busybox.git]
/
coreutils
/
yes.c
diff --git
a/coreutils/yes.c
b/coreutils/yes.c
index a822ebc1d4e019b4be1347e15e575521758b4106..f41bbb6ef4375a878afe463ce4cd31c0ac15f2d8 100644
(file)
--- a/
coreutils/yes.c
+++ b/
coreutils/yes.c
@@
-27,10
+27,8
@@
extern int yes_main(int argc, char **argv)
{
int i;
- 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 >= 2 && *argv[1] == '-')
+ usage(yes_usage);
if (argc == 1) {
while (1)