From 6c1cb7e274050f1ccb817b8ee34d0f61f34c95e3 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Thu, 4 Feb 2021 15:38:41 -0600 Subject: [PATCH] bash: Disable bracketed input by default Bash 5.1 enabled bracketed input mode by default, but this causes a lot of problems with automated testing as it can inject a lot of control sequences into non-interactive output. Disable it to cleanup the output an preserve the pre-5.1 behavior Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- meta/recipes-extended/bash/bash.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index bc737acd63..db326660ea 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc @@ -17,6 +17,10 @@ CFLAGS += "-DNON_INTERACTIVE_LOGIN_SHELLS" # This can vary depending upon the host CFLAGS += "-DHEREDOC_PIPESIZE=65536" +# Disable bracketed paste mode by default (enabled by default in bash 5.1). It +# causes a lot of garbage in non-interactive shells +CFLAGS += "-DBRACKETED_PASTE_DEFAULT=0" + ALTERNATIVE_${PN} = "bash sh" ALTERNATIVE_LINK_NAME[bash] = "${base_bindir}/bash" ALTERNATIVE_TARGET[bash] = "${base_bindir}/bash" -- 2.40.1