sh: do not print empty line at the end of "help" output
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 16:45:09 +0000 (18:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 16:45:09 +0000 (18:45 +0200)
It's pointless.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/hush.c

index 421639e8b106f583e2c16be5757b49e0d78215fc..f0dd70e6b9eb1f9fce5d4f2b6de9bd83fec821d5 100644 (file)
@@ -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
index 8693d7562e1366ec64dd01daadebd7c0307de036..8054d1d4561ec2abf3047179835f72f4281a3c2c 100644 (file)
@@ -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