Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:oertel
aaa_base
git-01-61c106aac03930e03935172eaf94d92c02a343bd...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-01-61c106aac03930e03935172eaf94d92c02a343bd.patch of Package aaa_base
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')
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