Witness the following typescript:

 

Script started on Tue 28 Mar 2006 10:30:52 PM PST
$ cat m4.txt

define(`echo1', `$*')

define(`echo2', `$@')

define(`foo', `This is the macro `foo'.')

#traceon

echo1(foo)

echo2(foo)

$ m4 m4.txt

 

 

 

#traceon

This is the macro This is the macro foo..

This is the macro foo.

$ sed 's/^#//' < m4.txt > m4_with_trace.txt

$ m4 m4_with_trace.txt

 

 

 

 

m4trace: -2- foo

m4trace: -1- echo1

This is the macro m4trace: -1- foo

This is the macro foo..

m4trace: -2- foo

m4trace: -1- echo2

This is the macro foo.

$
Script done on Tue 28 Mar 2006 10:31:54 PM PST
 

_______________________________________________
Bug-m4 mailing list
Bug-m4@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-m4

Reply via email to