m4-discuss
[Top][All Lists]
Advanced

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

Re: How to patsubst the result of an include?


From: Stepan Kasal
Subject: Re: How to patsubst the result of an include?
Date: Thu, 3 Feb 2005 08:45:38 +0100
User-agent: Mutt/1.4.1i

Hi,

> >     patsubst(include(`file'),`searchstring',`replacement')

I suggested something like:

patsubst(include(`two'changecom(`,'))changecom(`#'),
         `foo', `bar')

The CVS version of m4 has changesyntax(), which is a much more powerful
way to specify the lexical rules.
But any solution based on it is still a kludge, we need `expandonce' or
a similar solution.

(I apologize that I forget to mention it when writing the previous mail.)

Have a nice day,
        Stepan Kasal




reply via email to

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