Skip site navigation (1)Skip section navigation (2)
Date:      26 Apr 2003 15:34:52 -0000
From:      Mike Meyer <mwm@mired.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/51444: [PATCH] The handbook script for dealing with postscript is broken
Message-ID:  <20030426153452.13414.qmail@mired.org>
Resent-Message-ID: <200304261540.h3QFeCv4046160@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         51444
>Category:       docs
>Synopsis:       [PATCH] The handbook script for dealing with postscript is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 26 08:40:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mike Meyer
>Release:        FreeBSD 4.8-PRERELEASE i386
>Organization:
Meyer Consulting
>Environment:
System: FreeBSD guru.mired.org 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #18: Mon Feb 24 12:02:57 CST 2003 mwm@guru.mired.org:/sharetmp/obj/usr/src/sys/GURU i386

>Description:
	The handbook script for filtering postscript through gs is
	broken. It includes a second, unneeded invocation of gs that was
	probably meant to be commented out without explanation, and is
	missing a continuation mark on one command.
>How-To-Repeat:
	Read the handbook chapter on advanced printing, looking for
	"gs ".
>Fix:
	The attached patch removes the extra invocation, and adds in
	the  line continuation needed to make the script work properly.

--- chapter.sgml	Mon Feb 24 09:52:54 2003
+++ /tmp/chapter.sgml	Sat Apr 26 10:11:47 2003
@@ -1928,13 +1928,10 @@
     #  capture the stderr output from Ghostscript and mail it back to
     #  the user originating the print job.
     #
-    exec 3&gt;&amp;1 1&gt;&amp;2
+    exec 3&gt;&amp;1 1&gt;&amp;2 \
     /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 \
         -sOutputFile=/dev/fd/3 - &amp;&amp; exit 0
 
-    #
-    /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \
-        &amp;&amp; exit 0
 else
     #
     #  Plain text or HP/PCL, so just print it directly; print a form feed



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030426153452.13414.qmail>