Date: Mon, 4 Jan 1999 23:23:14 -0600 (CST) From: Bob@whitebarn.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/9321: /usr/share/examples/printing/ifhp has bad exit Message-ID: <199901050523.XAA11898@relent.bob.whitebarn.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901050523.XAA11898>