vapier      15/05/08 03:22:04

  Added:                man-1.6g-echo-escape.patch
  Removed:              man-1.6f-compress.patch man-1.5p-search-order.patch
                        man-1.6d-fbsd.patch man-1.6f-xz.patch
                        man-1.6b-more-sections.patch
                        man-1.5p-defmanpath-symlinks.patch
  Log:
  Avoid escape sequences with `echo` #523874 by Alex Xu.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
D2E96200)

Revision  Changes    Path
1.1                  sys-apps/man/files/man-1.6g-echo-escape.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/man/files/man-1.6g-echo-escape.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/man/files/man-1.6g-echo-escape.patch?rev=1.1&content-type=text/plain

Index: man-1.6g-echo-escape.patch
===================================================================
avoid using escape sequences in echo as they're not portable

https://bugs.gentoo.org/523874

--- a/src/man.c
+++ b/src/man.c
@@ -626,7 +626,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, [email protected]) */
-             strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\"");
+             strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \"; echo 
\"(nlu+10\"");
 #if 0
              /* In case this doesnt work for some reason,
                 michaelkjohnson suggests: I've got a simple




Reply via email to