Commit 44aafa33 authored by Luca Barbato's avatar Luca Barbato

configure: Properly escape arguments in filter/filter_out helper functions

The arguments may contain '$', which gets interpreted by the shell.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 3889dfde
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment