mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
do not make startup banner depend on job support
This commit is contained in:
parent
c0ea82a457
commit
b2705e1652
@ -4313,10 +4313,6 @@ int hush_main(int argc, char **argv)
|
|||||||
/* xfunc has failed! die die die */
|
/* xfunc has failed! die die die */
|
||||||
hush_exit(xfunc_error_retval);
|
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
|
#elif ENABLE_HUSH_INTERACTIVE
|
||||||
/* no job control compiled, only prompt/line editing */
|
/* no job control compiled, only prompt/line editing */
|
||||||
@ -4338,6 +4334,11 @@ int hush_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#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) {
|
if (argv[optind] == NULL) {
|
||||||
opt = parse_and_run_file(stdin);
|
opt = parse_and_run_file(stdin);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user