Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
aaa_base.13238
git-01-61c106aac03930e03935172eaf94d92c02a343bd...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-01-61c106aac03930e03935172eaf94d92c02a343bd.patch of Package aaa_base.13238
From 61c106aac03930e03935172eaf94d92c02a343bd Mon Sep 17 00:00:00 2001 From: Trucido <leetminiwheat@gmail.com> Date: Sat, 26 May 2018 11:02:04 -0400 Subject: [PATCH] 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 --- files/etc/bash.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git files/etc/bash.bashrc files/etc/bash.bashrc index d4828f2..e064262 100644 --- files/etc/bash.bashrc +++ 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') -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor