File git-01-61c106aac03930e03935172eaf94d92c02a343bd.patch of Package aaa_base.30689
commit 61c106aac03930e03935172eaf94d92c02a343bd
Author: Trucido <leetminiwheat@gmail.com>
Date: Sat May 26 11:02:04 2018 -0400
bashrc: Change =~ test to globs. Fixes mkshrc.
mksh shares bash.bashrc and [[ $TERM =~ xterm* ]] causes syntax error on Leap15 and TW;
mksh: /etc/mkshrc[140]: syntax error: unexpected operator/operand '=~'
Unless this fuzzy equal plus glob has another purpose, I see no reason to use it. All shells that share this file seem to support double globs in a dual bracket test
diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc
index d4828f2..e064262 100644
--- a/files/etc/bash.bashrc
+++ b/files/etc/bash.bashrc
@@ -137,7 +137,7 @@ case "$-" in
# addition needs to have "%w" in the "tabs" setting, ymmv for
# other console emulators.
#
- if [[ $TERM =~ xterm* ]] ; then
+ if [[ $TERM = *xterm* ]] ; then
_tsl=$(echo -en '\e]2;')
_isl=$(echo -en '\e]1;')
_fsl=$(echo -en '\007')