On 2020-10-12 07:24:22 -0500, Eric Blake wrote: > > In general, if the user is providing you text rather than something that > should expand as a macro that needs further recursive interpretation, you > should use defn() to get at that text: > > $ echo 'changequote([,])defn([foo])' | m4 -Dfoo=bar -Dbar=baz > bar > > But keep in mind that defn does NOT perform any interpolation of $, which > may introduce its own oddities if the user supplied a macro definition > containing $ that you aren't expanding as a macro.
This works great, thanks a lot :) W. -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature