From owner-freebsd-doc@FreeBSD.ORG Sat Apr 26 08:40:13 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 642A437B401 for ; Sat, 26 Apr 2003 08:40:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 817C643FA3 for ; Sat, 26 Apr 2003 08:40:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3QFeCUp046161 for ; Sat, 26 Apr 2003 08:40:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3QFeCv4046160; Sat, 26 Apr 2003 08:40:12 -0700 (PDT) Resent-Date: Sat, 26 Apr 2003 08:40:12 -0700 (PDT) Resent-Message-Id: <200304261540.h3QFeCv4046160@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Meyer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84BF437B401 for ; Sat, 26 Apr 2003 08:34:54 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id B367D43F93 for ; Sat, 26 Apr 2003 08:34:53 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 13429 invoked by uid 100); 26 Apr 2003 15:34:52 -0000 Message-Id: <20030426153452.13414.qmail@mired.org> Date: 26 Apr 2003 15:34:52 -0000 From: Mike Meyer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/51444: [PATCH] The handbook script for dealing with postscript is broken X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mike Meyer List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 15:40:13 -0000 >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>&1 1>&2 + exec 3>&1 1>&2 \ /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 \ -sOutputFile=/dev/fd/3 - && exit 0 - # - /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \ - && exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form feed >Release-Note: >Audit-Trail: >Unformatted: