diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-02 18:45:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-02 18:45:09 +0200 |
commit | ebedb9478d0d91d8aecf28531907e3a277450d0d (patch) | |
tree | a431061884cf80c152a2390ef79e60b6009c7cff | |
parent | df303ae11731b07f63b7034a7c141931d7a6fcbb (diff) | |
download | busybox-w32-ebedb9478d0d91d8aecf28531907e3a277450d0d.tar.gz busybox-w32-ebedb9478d0d91d8aecf28531907e3a277450d0d.tar.bz2 busybox-w32-ebedb9478d0d91d8aecf28531907e3a277450d0d.zip |
sh: do not print empty line at the end of "help" output
It's pointless.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 421639e8b..f0dd70e6b 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -12848,7 +12848,7 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
12848 | } | 12848 | } |
12849 | } | 12849 | } |
12850 | # endif | 12850 | # endif |
12851 | out1fmt("\n\n"); | 12851 | newline_and_flush(stdout); |
12852 | return EXIT_SUCCESS; | 12852 | return EXIT_SUCCESS; |
12853 | } | 12853 | } |
12854 | #endif | 12854 | #endif |
diff --git a/shell/hush.c b/shell/hush.c index 8693d7562..8054d1d45 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -9005,7 +9005,6 @@ static int FAST_FUNC builtin_help(char **argv UNUSED_PARAM) | |||
9005 | if (x->b_descr) | 9005 | if (x->b_descr) |
9006 | printf("%-10s%s\n", x->b_cmd, x->b_descr); | 9006 | printf("%-10s%s\n", x->b_cmd, x->b_descr); |
9007 | } | 9007 | } |
9008 | bb_putchar('\n'); | ||
9009 | return EXIT_SUCCESS; | 9008 | return EXIT_SUCCESS; |
9010 | } | 9009 | } |
9011 | #endif | 9010 | #endif |