ash,hush: share string
function old new delta optschanged 133 139 +6 hush_main 997 982 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 6/-15) Total: -9 bytes text data bss dec hexfilename 823160 445 7668 831273 caf29busybox_old 823102 445 7668 831215 caeefbusybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
8f7a6d294f
commit
c34c033c42
@ -8539,12 +8539,13 @@ setinteractive(int on)
|
|||||||
static smallint did_banner;
|
static smallint did_banner;
|
||||||
|
|
||||||
if (!did_banner) {
|
if (!did_banner) {
|
||||||
out1fmt(
|
/* note: ash and hush share this string */
|
||||||
"\n\n"
|
out1fmt("\n\n%s %s\n"
|
||||||
"%s built-in shell (ash)\n"
|
|
||||||
"Enter 'help' for a list of built-in commands."
|
"Enter 'help' for a list of built-in commands."
|
||||||
"\n\n",
|
"\n\n",
|
||||||
bb_banner);
|
bb_banner,
|
||||||
|
"built-in shell (ash)"
|
||||||
|
);
|
||||||
did_banner = 1;
|
did_banner = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
shell/hush.c
11
shell/hush.c
@ -6816,10 +6816,13 @@ int hush_main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!ENABLE_FEATURE_SH_EXTRA_QUIET && G_interactive_fd) {
|
if (!ENABLE_FEATURE_SH_EXTRA_QUIET && G_interactive_fd) {
|
||||||
printf("\n\n%s hush - the humble shell\n", bb_banner);
|
/* note: ash and hush share this string */
|
||||||
if (ENABLE_HUSH_HELP)
|
printf("\n\n%s %s\n"
|
||||||
puts("Enter 'help' for a list of built-in commands.");
|
IF_HUSH_HELP("Enter 'help' for a list of built-in commands.\n")
|
||||||
puts("");
|
"\n",
|
||||||
|
bb_banner,
|
||||||
|
"hush - the humble shell"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_and_run_file(stdin);
|
parse_and_run_file(stdin);
|
||||||
|
Loading…
Reference in New Issue
Block a user