From 026bf90b29314486d64f93c0633dffda8ac58379 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 13 Apr 2020 13:13:01 +0100 Subject: 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. --- libbb/messages.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb') 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"; #if !ENABLE_PLATFORM_MINGW32 const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; +#else +const char bb_skip_ansi_emulation[] ALIGN1 = "BB_SKIP_ANSI_EMULATION"; #endif const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, -- cgit v1.2.3-55-g6feb