Browse Source

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 <lu_zero@gentoo.org>
tags/n4.0
Luca Barbato 9 years ago
parent
commit
44aafa3325
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      configure

+ 2
- 2
configure View File

@@ -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
}



Loading…
Cancel
Save