From 2b7dfc13d98d46f1b203e1eedfaebf4eb8216910 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Fri, 17 Jan 2020 16:57:34 +0100 Subject: [PATCH] Simplify bash completion sourcing because it was broken in bash 3.2 --- scripts/util.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/util.sh b/scripts/util.sh index 14b5fb8..037ff22 100644 --- a/scripts/util.sh +++ b/scripts/util.sh @@ -61,8 +61,7 @@ __resh_bash_completion_init() { i=$bash_completion_dir/$i # shellcheck disable=SC2154 # shellcheck source=/dev/null - [[ ${i##*/} != @($_backup_glob|Makefile*|$_blacklist_glob) \ - && -f $i && -r $i ]] && . "$i" + [[ -f "$i" && -r "$i" ]] && . "$i" done fi }