diff options
author | Eric Blake <ebb9@byu.net> | 2008-03-27 06:58:07 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-03-27 06:58:07 -0600 |
commit | a86f1dcafc38e4e18ba5dc87a18cafaf44fe8a09 (patch) | |
tree | dd7914370004de2afca6403bf337f87c0433f6f4 | |
parent | 89e1c326f2eb19c322ef8add2a835cc9b6f4abe9 (diff) | |
download | m4-a86f1dcafc38e4e18ba5dc87a18cafaf44fe8a09.tar.gz |
Add test for divert bug on 2007-05-28, patched 2007-07-21.
* doc/m4.texinfo (Diversions): Add test.
Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/m4.texinfo | 14 |
2 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-03-27 Eric Blake <ebb9@byu.net> + + Add test for divert bug on 2007-05-28, patched 2007-07-21. + * doc/m4.texinfo (Diversions): Add test. + 2008-03-24 Eric Blake <ebb9@byu.net> Mention FIFO m4wrap more prominently in NEWS. diff --git a/doc/m4.texinfo b/doc/m4.texinfo index f79e574d..473b771a 100644 --- a/doc/m4.texinfo +++ b/doc/m4.texinfo @@ -4939,6 +4939,20 @@ divert(`1') f m4exit @end example + +@comment Catch regression in 1.4.10 with spilled diversions. + +@example +ifdef(`__unix__', , + `errprint(` skipping: syscmd does not have unix semantics +')m4exit(`77')')dnl +changequote(`[', `]')dnl +syscmd([echo 'divert(1)hi +format(%1000000d, 1)' | m4 | sed 1q])dnl +@result{}hi +sysval +@result{}0 +@end example @end ignore Diversions make it possible to generate output in a different order than |