nixpkgs-suyu/pkgs/development/tools/misc/gnum4/SIGPIPE.patch
Ludovic Courtès 7a1735a705 Add GNU M4 1.4.11, with test suite and all.
Can't replace 1.4.9 right now since it's part of stdenv.

svn path=/nixpkgs/trunk/; revision=12238
2008-07-01 19:50:34 +00:00

15 lines
464 B
Diff

Make the `126.diversions' test work when run in the Nix daemon.
See http://thread.gmane.org/gmane.comp.gnu.m4.bugs/2552/focus=2555 for details.
index 02e0f6d..3cd6951 100644
--- a/doc/m4.texinfo
+++ b/doc/m4.texinfo
@@ -4714,7 +4714,7 @@ ifdef(`__unix__', ,
')m4exit(`77')')dnl
changequote(`[', `]')dnl
syscmd([echo 'divert(1)hi
-format(%1000000d, 1)' | m4 | sed 1q])dnl
+format(%1000000d, 1)' | ]__program__[ | sed -n 1p])dnl
@result{}hi
sysval
@result{}0