3 Jan 2008 01:16
Re: [PATCH 3/3] Be nice with file systems that don't handle unusual characters.
Paul Eggert <eggert <at> CS.UCLA.EDU>
2008-01-03 00:16:12 GMT
2008-01-03 00:16:12 GMT
Thanks for those three patches (in <http://lists.gnu.org/archive/html/autoconf-patches/2007-12/msg00070.html>, <http://lists.gnu.org/archive/html/autoconf-patches/2007-12/msg00069.html>, <http://lists.gnu.org/archive/html/autoconf-patches/2007-12/msg00071.html>). I assume the 3rd patch is still experimental and not meant to be installed yet. In reviewing the first two I see a minor issue: +# Neutralize special characters interpreted by sed in replacement strings. +case $configure_input in #( + *'&'*) ac_sed_conf_input=`AS_ECHO(["$configure_input"]) | + sed 's/\\\\/\\\\\\\\/g;s/&/\\\\\\&/g'`;; #( I'm a bit lost here, but shouldn't this check for \ in $configure_input as well? Also, wouldn't the last line be a bit simpler as: sed 's/[[\\\\&]]/\\\\&/g'`;; #(
The other patch to add to the testsuite should include <at> configure_input <at>
somewhere in the *.in file, and the test should check for that.
> --- a/lib/autoconf/status.m4
> +++ b/lib/autoconf/status.m4
> <at> <at> -624,6 +624,13 <at> <at> esac
> _ACEOF
> ])dnl
>
> +# Neutralize special characters interpreted by sed in replacement strings.
> +case $configure_input in #(
> + *'&'*) ac_sed_conf_input=`AS_ECHO(["$configure_input"]) |
> + sed 's/\\\\/\\\\\\\\/g;s/&/\\\\\\&/g'`;; #(
> + *) ac_sed_conf_input=$configure_input;;
> +esac
This bit of code is executed at configure time, but needs to be run at
RSS Feed