]> git.draconx.ca Git - gentoo-fixes.git/blob - 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
1 diff --git a/src/man.c b/src/man.c
2 index 62eaee4a0fed..3d4a8d0bcbcf 100644
3 --- a/src/man.c
4 +++ b/src/man.c
5 @@ -616,7 +616,7 @@ make_roff_command (const char *path, const char *file) {
6                  the current position plus 10 lines.  This plus setpl()
7                  gives us a single page that just contains the whole
8                  man page. (William Webber, wew@cs.rmit.edu.au) */
9 -             strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\"");
10 +             strcat(buft, "; printf '%s\\n' \".\\\\\\\"\" \".pl \\n(nlu+10\"");
11  #if 0
12               /* In case this doesnt work for some reason,
13                  michaelkjohnson suggests: I've got a simple