Sample Header Ad - 728x90

m4: how to output literal $0?

0 votes
1 answer
48 views
How does one avoid m4 interpreting a $0, for example?
# foo.m4
define(m4_foo',$0')

# bar.txt
m4_foo
M4 does not replace the text. There must be some way to deposit $0 in a file via macros?
Asked by Chris (1075 rep)
Jul 12, 2020, 08:36 PM
Last activity: Jul 12, 2020, 09:47 PM