]> git.draconx.ca Git - gentoo-fixes.git/blobdiff - sys-apps/man/files/man-1.6g-nonportable-echo.patch
sys-apps/man: Fix borken Gentoo man-1.6g-echo-escape.patch
[gentoo-fixes.git] / sys-apps / man / files / man-1.6g-nonportable-echo.patch
diff --git a/sys-apps/man/files/man-1.6g-nonportable-echo.patch b/sys-apps/man/files/man-1.6g-nonportable-echo.patch
new file mode 100644 (file)
index 0000000..f3c67be
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/man.c b/src/man.c
+index 62eaee4a0fed..3d4a8d0bcbcf 100644
+--- a/src/man.c
++++ b/src/man.c
+@@ -616,7 +616,7 @@ make_roff_command (const char *path, const char *file) {
+                the current position plus 10 lines.  This plus setpl()
+                gives us a single page that just contains the whole
+                man page. (William Webber, wew@cs.rmit.edu.au) */
+-            strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\"");
++            strcat(buft, "; printf '%s\\n' \".\\\\\\\"\" \".pl \\n(nlu+10\"");
+ #if 0
+             /* In case this doesnt work for some reason,
+                michaelkjohnson suggests: I've got a simple