From 44aafa3325ec09a120bdb81b8579b8dfd65b1693 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 6 Apr 2017 18:14:29 +0200 Subject: [PATCH] configure: Properly escape arguments in filter/filter_out helper functions The arguments may contain '$', which gets interpreted by the shell. Signed-off-by: Luca Barbato --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e83a4cf697..967d7d9a10 100755 --- a/configure +++ b/configure @@ -433,7 +433,7 @@ filter(){ pat=$1 shift for v; do - eval "case $v in $pat) printf '%s ' $v ;; esac" + eval "case '$v' in $pat) printf '%s ' '$v' ;; esac" done } @@ -441,7 +441,7 @@ filter_out(){ pat=$1 shift for v; do - eval "case $v in $pat) ;; *) printf '%s ' $v ;; esac" + eval "case '$v' in $pat) ;; *) printf '%s ' '$v' ;; esac" done }