[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoheader @ interpolation
From: |
Carlos Velasco |
Subject: |
Re: Autoheader @ interpolation |
Date: |
Sun, 15 Sep 2002 16:17:44 +0200 |
This is the patch for escaping the @ character:
--- lib/m4sugar/m4sh.m4 Mon Sep 2 09:30:35 2002
+++ lib/m4sugar/m4sh.m4 Sun Sep 15 15:57:49 2002
@@ -309,7 +309,7 @@
# Escape the CHARS in STRING.
m4_define([AS_ESCAPE],
[m4_bpatsubst([$1],
- m4_ifval([$2], [[\([$2]\)]], [[\([\"$`]\)]]),
+ m4_ifval([$2], [[\([$2]\)]], [[\(address@hidden"$`]\)]]),
[\\\1])])
Regards,
Carlos Velasco
*********** REPLY SEPARATOR ***********
On 15/09/2002 at 5:07 Carlos Velasco wrote:
>Tried with autoconf/autoheader 2.54 with the same result
>
>*********** REPLY SEPARATOR ***********
>
>On 15/09/2002 at 3:47 Carlos Velasco wrote:
>
>>Hi,
>>
>>In autoconf/autoheader 2.53
>>
>>I was trying to upgrade an old file when I stepped into this bug.
>>Using AH_TOP to include a header into the template file resulted on:
>>
>>couldn't parse /tmp/ah79k8w8/traces.pl: In string, @andrew now must be
>>written as address@hidden at /tmp/ah79k8w8/traces.pl line 22, near "@andrew"
>>
>>Editing the tmp file showed that perl string was like
>>"address@hidden"
>>It seems that autoheader is not parsing "@" to "\@" when passing the
>>string to perl.
>>
>>I have searched for this error:
>>
>>http://perl.plover.com/at-error.html
>>
>>Regards,
>>Carlos Velasco