From 93013c9051e616a71e2020f0c0d6e8f668f020b9 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Mon, 9 Mar 2020 21:11:31 +0100 Subject: [PATCH] https://www.linuxquestions.org/questions/slackware-14/slackpkg-1-8-a-4175669481/page6.html#post6098877 --- src/slackpkgplus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index ade2db6..75af6d6 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1155,7 +1155,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then # extract the pattern from $i, if and only if "$i" is to the syntax :. Without # this, PAT would be set to $DIR when $i is to the syntax . # - [[ "$DIR" =~ [:][:alnum:]+ ]] && PAT=${i/*:/} + [[ "$i" =~ [:][[:alnum:]]+ ]] && PAT=${i/*:/} # when the current priority is of kind :, the loop must be short-circuited # when SEARCHSTR does not match PATTERN, otherwise, some packages could be mistakenly