autoconf-patches
[Top][All Lists]
Advanced

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

Re: 15autotest-more-info-prettier.diff


From: gary
Subject: Re: 15autotest-more-info-prettier.diff
Date: Thu, 14 Aug 2003 13:30:43 +0100
User-agent: Demon-WebMail/2.0

address@hidden wrote:
> +    $at_quiet $ECHO_N "m4_format([[%3d: %-45s]],
> +                    AT_ordinal, [$1])[]$ECHO_C"

The above line is overquoted, and should read:

  +                    AT_ordinal, $1)[]$ECHO_C"

Consider:  I want to create a test group called `divert'.

  AT_SETUP([divert])

But m4 will cause the divert builtin to be called on rereading, so I double 
quote it:

  AT_SETUP([[divert]])

with the overquoted $1 in the patch as is, we end up with three quote levels, 
and the test group will display as:

    1: [divert]                                       ok

I think the same problem would occur if you had a comma, or $1 in the group 
name and needed to double quote the argument to AT_SETUP to prevent m4 from 
misbehaving when rereading.

Cheers,
     Gary.






reply via email to

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