How does one coax a string macro into considering a string, expanded?
Consider this macro:
# Foo(EXPRESSION)
# ---
# Emit expression with the right prologue.
m4_define([Foo],
[m4_bregexp([$1], [special], [Special prologue.])[]dnl
$1])
For maximum user flexibility, the emitted copy of
Paul Eggert wrote:
>
> Akim Demaille <[EMAIL PROTECTED]> writes:
>
> "Noah" == Noah Misch <[EMAIL PROTECTED]> writes:
> >
> > > I hope I have missed a general solution. Ideas?
> >
> > Fix m4.
>
> Or switch to a different scripting language. That'd be a lot of work
> too, unfortunately...
Akim Demaille <[EMAIL PROTECTED]> writes:
"Noah" == Noah Misch <[EMAIL PROTECTED]> writes:
>
> > I hope I have missed a general solution. Ideas?
>
> Fix m4.
Or switch to a different scripting language. That'd be a lot of work
too, unfortunately
__
>>> "Noah" == Noah Misch <[EMAIL PROTECTED]> writes:
> I hope I have missed a general solution. Ideas?
Fix m4. It has fundamental flaws from its inception:
- text processing builtins (regexp etc.) should return quoted strings,
they do not.
- eval should do what it does it almost all the ot