]> code.ossystems Code Review - openembedded-core.git/commitdiff
bash: Disable bracketed input by default
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 4 Feb 2021 21:38:41 +0000 (15:38 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Feb 2021 09:02:51 +0000 (09:02 +0000)
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 <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/bash/bash.inc

index bc737acd63b29e5c08252b5f178723b080e52afb..db326660ea9b693d6550d4385e016cdc40c97d20 100644 (file)
@@ -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"