bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

There is a bug in m4 tracing


From: Scott Simpson
Subject: There is a bug in m4 tracing
Date: Tue, 28 Mar 2006 22:35:06 -0800

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
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]