On 04/06/2010 11:02 PM, Ralf Wildenhues wrote:
> Hello,
> 
> * Eric Blake wrote on Sat, Apr 03, 2010 at 01:32:45AM CEST:
>> +    Fix m4_cr_all for EBCDIC.
>> +    * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
>> +    don't end up with $* in EBCDIC.
>> +    Reported by Steve Goetze.
> 
> thanks for working on this!
> 
>>  m4_define([m4_cr_all],
>>  m4_translit(m4_dquote(m4_format(m4_dquote(m4_for(
>> -  ,1,255,,[[%c]]))m4_for([i],1,255,,[,i]))), [-])-)
>> +  ,1,255,,[[%c]]))m4_for([i],1,255,,[,i]))), [$*-], [*$])-)
> 
> Reading the patch, I wonder why the $* in the second argument to
> m4_translit does not ever get expanded to something undesirable?

Because it is at the top level.  That is, we are NOT inside any
m4_define/AC_DEFUN, but this is being parsed immediately by m4.  $* only
expands into arguments when you are expanding a defined macro that has
arguments.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to