From: Denys Vlasenko Date: Sun, 2 Oct 2016 16:45:09 +0000 (+0200) Subject: sh: do not print empty line at the end of "help" output X-Git-Tag: 1_26_0~182 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ebedb9478d0d91d8aecf28531907e3a277450d0d;p=oweals%2Fbusybox.git sh: do not print empty line at the end of "help" output It's pointless. Signed-off-by: Denys Vlasenko --- 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) } } # endif - out1fmt("\n\n"); + newline_and_flush(stdout); return EXIT_SUCCESS; } #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) if (x->b_descr) printf("%-10s%s\n", x->b_cmd, x->b_descr); } - bb_putchar('\n'); return EXIT_SUCCESS; } #endif