On 7/17/20 7:57 PM, M.R.P. zensky wrote:
Hello I am on linux. M4 is installed. I try to define a macro in M4 by typing
M4 —define (test,Hello) I just get the message “bash: syntax error near
unexpected token `(` Do I need to install or setup some other program than m4
for it to work? What a
m4 (GNU M4) 1.4.18
Operating System: Ubuntu 20.04 LTS
Kernel: Linux 5.4.0-33-generic
Architecture: x86-64
sh$ m4 <<\@
patsubst(`hello', `ll', `XX')
patsubst(`hello', `l+', `XX')
patsubst(`hello', `l\{2\}', `XX')
patsubst(`hello', `l{2}', `XX')
@
heXXo
heXXo
hello
hello