Date: Tue, 7 Mar 2000 16:18:44 -0800 (PST) From: brooks@one-eyed-alien.net To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17256: lp should take the -s option Message-ID: <200003080018.QAA20280@sense-brooks-226.oz.net>
index | next in thread | raw e-mail
>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 <file>
>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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003080018.QAA20280>
