Sample Header Ad - 728x90

Why is m4 -D option not doing a substitution

2 votes
1 answer
104 views
How does -DQUOTE=yes work in the code below? I expected the second line to be ifelse(yes,yes,Learn Linux today!) The other parts make sense to me. From Linux Pocket Guide - by Daniel J. Barrett $ cat myfile My name is NAME and I am AGE years old. ifelse(QUOTE,yes,Learn Linux today!) $ m4 -DNAME=Sandy -DAGE=25 -DQUOTE=yes myfile My name is Sandy and I am 25 years old. Learn Linux today!
Asked by PurpleMongrel (63 rep)
Nov 18, 2021, 05:53 AM
Last activity: Nov 18, 2021, 06:12 PM