X-Git-Url: https://git.draconx.ca/gitweb/gentoo-fixes.git/blobdiff_plain/c5ad4e57246dc176a4dcfd91aae7de08b48d4148..08d9bcb18fa022ef653b4f3b46f4cba07abccefc:/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 index 0000000..f3c67be --- /dev/null +++ b/sys-apps/man/files/man-1.6g-nonportable-echo.patch @@ -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