aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-24 06:40:30 +0000
committerMike Frysinger <vapier@gentoo.org>2009-04-24 06:40:30 +0000
commit26cf2831d75db1be2241c0a4573ddf4da18b5560 (patch)
tree867af07b6a3b747d8b86b04e17bf59e09afc4c48
parent67c1c7b456f18fe397ab0dfad92f13b5080b0c52 (diff)
downloadbusybox-w32-26cf2831d75db1be2241c0a4573ddf4da18b5560.tar.gz
busybox-w32-26cf2831d75db1be2241c0a4573ddf4da18b5560.tar.bz2
busybox-w32-26cf2831d75db1be2241c0a4573ddf4da18b5560.zip
do not tell people they can enter "help" if help has actually been disabled
-rw-r--r--shell/hush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 924d826cc..fcbd96c4d 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -6259,7 +6259,9 @@ int hush_main(int argc, char **argv)
6259 6259
6260 if (!ENABLE_FEATURE_SH_EXTRA_QUIET && G_interactive_fd) { 6260 if (!ENABLE_FEATURE_SH_EXTRA_QUIET && G_interactive_fd) {
6261 printf("\n\n%s hush - the humble shell\n", bb_banner); 6261 printf("\n\n%s hush - the humble shell\n", bb_banner);
6262 printf("Enter 'help' for a list of built-in commands.\n\n"); 6262 if (ENABLE_HUSH_HELP)
6263 puts("Enter 'help' for a list of built-in commands.");
6264 puts("");
6263 } 6265 }
6264 6266
6265 parse_and_run_file(stdin); 6267 parse_and_run_file(stdin);