Eric Blake <ebb9 <at> byu.net> writes:
>
> Ouch. We aren't compatible here, without adding the feature of partial input
> across EOF. With Solaris 8:
>
> $ echo "m4wrap(\`abc)
> > ')len(" | m4
> NONE:0: m4: ERROR: EOF in argument list
> $ echo "m4wrap(\`abc)
> > ')len(" | /usr/ccs/bin/m4
> 3
It looks like Solaris doesn't mind EOF during argument collection, but does
mind EOF during strings:
$ echo "define(a,\`1" > a.m4
$ echo "2')a" > b.m4
$ m4 a.m4 b.m4
NONE:0: m4: ERROR: EOF in string
$ /usr/ccs/bin/m4 a.m4 b.m4
/usr/ccs/bin/m4:a.m4:2 EOF in quote
define(a,1
)
$
But if we are going to allow partial input, I would argue that partial strings
should not behave any differently than partial arguments when we are not in
-G/--traditional mode.
--
Eric Blake
_______________________________________________
Bug-m4 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-m4