commit: a708ed788e27a3e1619bec0dc2f08d8a8eb077db
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 15:44:14 2017 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat May 13 15:44:14 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a708ed78
cdrom.eclass: Fix matching of entries with trailing /, bug #618344
eclass/cdrom.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 2270bbe30cf..47e2c6342e0 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -281,7 +281,7 @@ _cdrom_glob_match() {
shopt -s extglob nocaseglob nullglob || die
# The first person to make this work without an eval wins a
# cookie. It breaks without it when spaces are present.
- eval "ARRAY=( ${p} )"
+ eval "ARRAY=( ${p%\?()} )"
echo ${ARRAY[0]}
)
}