On 10/09/2015 11:49 AM, Donald Allen wrote:
> Sorry, false alarm. Pilot error -- a quoting problem.
> 
> /Don Allen
> 
> On Fri, Oct 9, 2015 at 8:57 AM, Donald Allen <donaldcal...@gmail.com> wrote:
>> /tmp/testit.m4:
>> define(`First', index($1,`@'))
In case someone else reading doesn't readily spot the quoting error,
this should have been:

define(`First', `index(`$1',`@')')

Without the quotes, the index($1,`@') is expanded prior to passing
arguments to define, and since @ does not appear in the literal string
$1, you end up with the same as if you had done define(`First',`-1').

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to