So, with this simple input,
define(foo, len($1)) foo(abcdef)
I get, as output:
2
How can I get this to print 5
, instead? I can't figure out any combination of quoting that makes len()
actually receive the value of $1
, abcdef
, instead of the literal string `$1'
.
Edit 1: The actual code in question looks something like this:
define(`FILE', `#' /!\ $1 /!\
`#' ====substr(==============================,0,len($1))====)dnl
FILE(`UTILITY.ASM')