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,`@')) > First(`foo@bar@baz') > index(`foo@bar@baz',`@') > > > dca@franz:/tmp$ m4 testit.m4 > > -1 > 3 > dca@franz:/tmp$ > > I'm stumped as to why the index call in First returns -1, whereas the > direct call returns the correct index. In trying to understand this, > I've defined a 'myindex' macro that simply returns its arguments, and > they are the same in both cases. > > Any help would be appreciated. > > /Don Allen