autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make AS_VAR_SET more robust to shell quoting (shell functions 4/n)


From: Akim Demaille
Subject: Re: Make AS_VAR_SET more robust to shell quoting (shell functions 4/n)
Date: Wed, 21 May 2003 11:50:09 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux)

| This should be the last patch before actual usage of shell functions.
| 2003-03-05 Paolo Bonzini <address@hidden>
| 
|         * m4sugar/m4sh.at (AC_VAR_SET): Protect RHS of indirect
|         variable accesses, if quoted.
| 
| 
| 
| 
| 
| --- autoconf-2.57a-orig/lib/m4sugar/m4sh.m4   Fri May  2 21:14:32 2003
| +++ autoconf-2.57a/lib/m4sugar/m4sh.m4        Sat May  3 15:16:22 2003
| @@ -1006,7 +1006,7 @@
|  m4_define([AS_VAR_SET],
|  [AS_LITERAL_IF([$1],
|                 [$1=$2],
| -               [eval "$1=$2"])])
| +               [eval "$1=AS_ESCAPE([$2], ["])"])])
|  
|  
|  # AS_VAR_GET(VARIABLE)

Please, install.  Don't you want to escape \\ too?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]