diff options
author | Ron Yorston <rmy@pobox.com> | 2020-04-13 13:13:01 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-04-13 13:35:49 +0100 |
commit | 026bf90b29314486d64f93c0633dffda8ac58379 (patch) | |
tree | 3624c2be4bae9038eeaf49c5e80ceef5030d1390 /libbb | |
parent | 10e14d5ebdfdfe3acd1cd60692d9cffd07de04e2 (diff) | |
download | busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.tar.gz busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.tar.bz2 busybox-w32-026bf90b29314486d64f93c0633dffda8ac58379.zip |
ash: reset ANSI emulation when BB_SKIP_ANSI_EMULATION changes
Update the skip status on the first call to skip_ansi_emulation()
and whenever the BB_SKIP_ANSI_EMULATION variable changes.
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/messages.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index f5bbd3e32..04863855a 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -29,6 +29,8 @@ const char bb_hexdigits_upcase[] ALIGN1 = "0123456789ABCDEF"; | |||
29 | 29 | ||
30 | #if !ENABLE_PLATFORM_MINGW32 | 30 | #if !ENABLE_PLATFORM_MINGW32 |
31 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; | 31 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; |
32 | #else | ||
33 | const char bb_skip_ansi_emulation[] ALIGN1 = "BB_SKIP_ANSI_EMULATION"; | ||
32 | #endif | 34 | #endif |
33 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; | 35 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; |
34 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 36 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |