diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-03-25 22:35:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-03-25 22:35:37 -0700 |
commit | f65653c9a375511f0b3af588082e441e9c5fcb0d (patch) | |
tree | 1e40090aca59732054596b6cd9d4f4ebbf3d8def | |
parent | c79849f0be4d8d4a3fc1b1386c70daa3f29a5d0e (diff) | |
download | txr-f65653c9a375511f0b3af588082e441e9c5fcb0d.tar.gz txr-f65653c9a375511f0b3af588082e441e9c5fcb0d.tar.bz2 txr-f65653c9a375511f0b3af588082e441e9c5fcb0d.zip |
configure: allow variables to contain quotes.
* configure: When generating the assignment that stores the
value of the command line variable into the corresponding
shell variable, interpolate $val between single quotes in such
a way that single quotes occurring in $val are replaced by the
pattern '\''. Thus, variables may contain any character
whatsoever.
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +225,7 @@ while [ $# -gt 0 ] ; do exit 1 fi - eval "$var='$val'" + eval "$var='$(printf "%s" "$val" | sed -e "s/'/'\\\\''/g")'" eval "var_given_exists=\${${var}_given+y}" |