summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorMike Frysinger2009-03-23 08:44:02 +0000
committerMike Frysinger2009-03-23 08:44:02 +0000
commitb2705e1652d6e89b55f9c4f701f13f28c53e499a (patch)
treea975e0a08e90c842a14218f6eac3ac9865637114 /shell/hush.c
parentc0ea82a457410b46265cddc4883fbf9fcfdb2e24 (diff)
downloadbusybox-b2705e1652d6e89b55f9c4f701f13f28c53e499a.zip
busybox-b2705e1652d6e89b55f9c4f701f13f28c53e499a.tar.gz
do not make startup banner depend on job support
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 6e2ef5d..91beb81 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -4313,10 +4313,6 @@ int hush_main(int argc, char **argv)
/* xfunc has failed! die die die */
hush_exit(xfunc_error_retval);
}
-#if !ENABLE_FEATURE_SH_EXTRA_QUIET
- printf("\n\n%s hush - the humble shell v"HUSH_VER_STR"\n", bb_banner);
- printf("Enter 'help' for a list of built-in commands.\n\n");
-#endif
}
#elif ENABLE_HUSH_INTERACTIVE
/* no job control compiled, only prompt/line editing */
@@ -4338,6 +4334,11 @@ int hush_main(int argc, char **argv)
}
#endif
+ if (!ENABLE_FEATURE_SH_EXTRA_QUIET && G.interactive_fd) {
+ printf("\n\n%s hush - the humble shell v"HUSH_VER_STR"\n", bb_banner);
+ printf("Enter 'help' for a list of built-in commands.\n\n");
+ }
+
if (argv[optind] == NULL) {
opt = parse_and_run_file(stdin);
} else {