projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3eb337
)
- fix invocation without any argument
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 8 Jun 2007 12:51:55 +0000
(12:51 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 8 Jun 2007 12:51:55 +0000
(12:51 -0000)
coreutils/echo.c
patch
|
blob
|
history
diff --git
a/coreutils/echo.c
b/coreutils/echo.c
index e1eea000747b210ad2e952bdf1112d2f99c784b6..085e8516c487820b62e171599180f109c1f6975e 100644
(file)
--- a/
coreutils/echo.c
+++ b/
coreutils/echo.c
@@
-34,6
+34,8
@@
int bb_echo(char **argv)
nflag = 1, /* 1 -- print '\n' */
};
arg = *++argv;
+ if (!arg)
+ goto newline_ret;
#else
const char *p;
char nflag = 1;
@@
-107,9
+109,7
@@
int bb_echo(char **argv)
putchar(' ');
}
-#if ENABLE_FEATURE_FANCY_ECHO
newline_ret:
-#endif
if (nflag) {
putchar('\n');
}