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: Matthew Braithwaite
Subject: Re: How to patsubst the result of an include?
Date: Wed, 2 Feb 2005 08:10:24 -0800
User-agent: Mutt/1.4.2.1i

On Wed, Feb 02, 2005 at 11:11:23AM +0100, Stepan Kasal wrote:
> 
> It seems to be as simple as
> 
>     patsubst(include(`file'),`searchstring',`replacement')
> 
> so it fully expands the contents of `file', then does the substitution,
> and then expands the result again.

$ cat ab 
a, b
$ m4
patsubst(include(`ab'), `a', `b')
stdin:1: m4: Warning: Excess arguments to built-in `patsubst' ignored
a




reply via email to

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