From owner-freebsd-bugs Tue Mar 7 16:20: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A5EA637C1EC for ; Tue, 7 Mar 2000 16:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA99385; Tue, 7 Mar 2000 16:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from sense-brooks-226.oz.net (sense-brooks-226.oz.net [216.39.156.226]) by hub.freebsd.org (Postfix) with ESMTP id C82BA37B620 for ; Tue, 7 Mar 2000 16:19:15 -0800 (PST) (envelope-from brooks@sense-brooks-226.oz.net) Received: (from brooks@localhost) by sense-brooks-226.oz.net (8.9.3/8.9.3) id QAA20280; Tue, 7 Mar 2000 16:18:44 -0800 (PST) (envelope-from brooks) Message-Id: <200003080018.QAA20280@sense-brooks-226.oz.net> Date: Tue, 7 Mar 2000 16:18:44 -0800 (PST) From: brooks@one-eyed-alien.net Reply-To: brooks@one-eyed-alien.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17256: lp should take the -s option Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17256 >Category: bin >Synopsis: lp should take the -s option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 7 16:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Brooks Davis >Release: FreeBSD 4.0-CURRENT i386 >Organization: Aerospace Corporation >Environment: 4.0-CURRENT. Also effects prior versions >Description: the lp shell script should take the -s (silence) option. lpr is basicaly silent anyway and Applixware insists on calling lp with the -s option. Accepting and throwing it way makes printing work out of the box and doesn't appear to behave incorrectly. >How-To-Repeat: lp -s >Fix: Index: usr.sbin/lpr/lp/lp.sh =================================================================== RCS file: /home/ncvs/src/usr.sbin/lpr/lp/lp.sh,v retrieving revision 1.6 diff -u -r1.6 lp.sh --- usr.sbin/lpr/lp/lp.sh 1999/08/28 01:16:50 1.6 +++ usr.sbin/lpr/lp/lp.sh 2000/03/08 00:12:19 @@ -48,8 +48,10 @@ # # XXX We include the -o flag as a dummy. Posix 1003.2 does not require # it, but the rationale mentions it as a possible future extension. +# XXX Applixware insists on the -s option. It appears that lpr is +# generally silent so eating the option does the right thing. # -while getopts "cd:n:o:" option +while getopts "cd:n:o:s" option do case $option in @@ -61,6 +63,8 @@ ncopies="-#${OPTARG}";; o) # (printer option) : ;; + s) # (silence) + ;; *) # (error msg printed by getopts) exit 2;; esac >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message