bug-m4
[Top][All Lists]
Advanced

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

Re: frozen files format 2


From: Eric Blake
Subject: Re: frozen files format 2
Date: Thu, 22 Jun 2006 22:09:30 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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






reply via email to

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