From owner-freebsd-bugs Mon Jan 4 21:20:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA00104 for freebsd-bugs-outgoing; Mon, 4 Jan 1999 21:20:08 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA29998 for ; Mon, 4 Jan 1999 21:20:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA11759; Mon, 4 Jan 1999 21:20:01 -0800 (PST) Received: from smtp.whitebarn.com (in.WhiteBarn.com [216.0.13.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA29879 for ; Mon, 4 Jan 1999 21:18:35 -0800 (PST) (envelope-from bob@relent.bob.whitebarn.com) Received: from relent.bob.whitebarn.com (relent.bob.WhiteBarn.com [216.0.13.10]) by smtp.whitebarn.com (8.8.8/8.8.8) with ESMTP id XAA21344 for ; Mon, 4 Jan 1999 23:17:58 -0600 (CST) (envelope-from bob@relent.bob.whitebarn.com) Received: (from bob@localhost) by relent.bob.whitebarn.com (8.9.1/8.9.1) id XAA11898; Mon, 4 Jan 1999 23:23:14 -0600 (CST) (envelope-from bob) Message-Id: <199901050523.XAA11898@relent.bob.whitebarn.com> Date: Mon, 4 Jan 1999 23:23:14 -0600 (CST) From: Bob@whitebarn.com Reply-To: Bob@whitebarn.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/9321: /usr/share/examples/printing/ifhp has bad exit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 9321 >Category: misc >Synopsis: /usr/share/examples/printing/ifhp has bad exit >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 4 21:20:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Bob Van Valzah >Release: FreeBSD 3.0-RELEASE i386 >Organization: WhiteBarn Web Works >Environment: >Description: /usr/share/examples/printing/ifhp exits with error code 2 even after successfully printing a plan-text document. >How-To-Repeat: Install /usr/share/examples/printing/ifhp in /usr/local/libexec/hpif, configure /etc/printcap to use it as an input filter, and then try to print a plain-text document. >Fix: [Note that the printing section of the handbook has this example right--it's just wrong in /usr/share/examples/printing/ifhp.] Here's the context diff: diff -c /usr/share/examples/printing/ifhp /usr/local/libexec/hpif *** /usr/share/examples/printing/ifhp Sat Oct 17 12:05:19 1998 --- /usr/local/libexec/hpif Mon Jan 4 22:52:59 1999 *************** *** 26,32 **** # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # ! echo $first_line && cat && printf "\f" && exit 2 fi exit 2 --- 26,32 ---- # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # ! echo $first_line && cat && printf "\f" && exit 0 fi exit 2 Note "exit 2" changed to "exit 0". Thanks! Bob I'm a happy FreeBSD user! >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message