diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-08 18:34:25 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-08 18:34:25 (EDT) |
commit | d1672ee53a307cd0900989545051467800534cdf (patch) | |
tree | 474dfb5d74facda71a52453c0df85688f3dbb9d6 /configure | |
parent | c955d291ab89b0b577179f914a297418c5ecdb62 (diff) |
Use better quoting in eval commands in configure.
Diffstat (limited to 'configure')
-rw-r--r--[-rwxr-xr-x] | configure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure index 67bc927..4db98ee 100755..100644 --- a/configure +++ b/configure @@ -140,7 +140,7 @@ parse_options() # Handle arguments of "--opt arg" options. if [ -n "${_prev}" ]; then - eval "${_prev}=\$\{_opt\}" + eval "${_prev}"=\"\$\{_opt\}\" _prev= continue fi @@ -203,7 +203,7 @@ EOF fi if ${_optarg_set}; then _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')" - eval ${_opt}=\$\{_optarg\} + eval "${_opt}"=\"\$\{_optarg\}\" else _prev="${_opt}" fi @@ -224,7 +224,7 @@ find_dep_cmd() : ${_element=-.} if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" - eval "${_dep}=${_element}/${_dep}" + eval "${_dep}"=\"${_element}/${_dep}\" IFS="${_old_ifs}" return 0 fi |