-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paolo Bonzini on 10/17/2008 6:19 AM:
> That's related to tmp being underquoted, see the following even more
> reduced testcase
> 
> AS_INIT
> m4_defun([AS_DOIT], [: $1])
> m4_define([tmp], [AS_TR_SH(foo)])
> AS_DOIT(tmp)
> 
> => : # Sed expression to map a string onto a valid variable name.
>    as_tr_sh="eval sed 'y%*+%pp%;s%^_$as_cr_alnum%_%g'"
> 
>    foo

Thanks; that was what I was missing.  I'm trying to document and test
AS_VAR, and didn't realize that the temporary variable still needed
quoting until the last minute.  It turns out that the m4 temporary
variable created by AS_VAR_PUSHDEF must be expanded only at the outermost
level (diversions only work for outermost expansions; otherwise the text
is picked up by argument collection).  AS_VAR patch coming up soon, and
nothing more to see in this thread.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj4hNUACgkQ84KuGfSFAYDXPQCeJ0tMUJ6RDJwUpMy1qnYVrOXJ
0EwAn1Kj8qiG03C64tRqqTUS+eZvvION
=IA2p
-----END PGP SIGNATURE-----


Reply via email to