summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2016-10-02 18:45:09 +0200
committerDenys Vlasenko2016-10-02 18:45:09 +0200
commitebedb9478d0d91d8aecf28531907e3a277450d0d (patch)
treea431061884cf80c152a2390ef79e60b6009c7cff /shell
parentdf303ae11731b07f63b7034a7c141931d7a6fcbb (diff)
downloadbusybox-ebedb9478d0d91d8aecf28531907e3a277450d0d.zip
busybox-ebedb9478d0d91d8aecf28531907e3a277450d0d.tar.gz
sh: do not print empty line at the end of "help" output
It's pointless. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
-rw-r--r--shell/hush.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 421639e..f0dd70e 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 8693d75..8054d1d 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