summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-03-08 10:02:11 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-03-08 10:02:11 +0000
commitcf878fa1e0e46ce37d33219598bf40e470a0473d (patch)
tree7aba49e4e22ae10a6d221dbea2c50ecdfddbf942 /usr.sbin/lpr
parente46e799c15a266f5e569622482f94c2cb3c627e9 (diff)
downloadFreeBSD-src-cf878fa1e0e46ce37d33219598bf40e470a0473d.zip
FreeBSD-src-cf878fa1e0e46ce37d33219598bf40e470a0473d.tar.gz
Add a dummy -s option for SUSv2 compatibility.
PR: 17256 Reported by: Brooks Davis <brooks@one-eyed-alien.net> Approved by: jkh (release engineer)
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lp/lp.17
-rw-r--r--usr.sbin/lpr/lp/lp.sh6
2 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lp/lp.1 b/usr.sbin/lpr/lp/lp.1
index 808d0fa..81d4fd9 100644
--- a/usr.sbin/lpr/lp/lp.1
+++ b/usr.sbin/lpr/lp/lp.1
@@ -41,7 +41,7 @@
.Nd front-end to the print spooler
.Sh SYNOPSIS
.Nm lp
-.Op Fl c
+.Op Fl cs
.Op Fl d Ar printer
.Op Fl n Ar num
.Op Ar name ...
@@ -78,6 +78,11 @@ are taken as the destination printer.
Specify that
.Ar num
copies of each of the named files shall be printed.
+.It Fl s
+Silent operation.
+Not supported,
+provided only as a compatibility option for
+.St -susv2 .
.El
.Sh ENVIRONMENT
As described above, the variables
diff --git a/usr.sbin/lpr/lp/lp.sh b/usr.sbin/lpr/lp/lp.sh
index 317f840..e7c0688 100644
--- a/usr.sbin/lpr/lp/lp.sh
+++ b/usr.sbin/lpr/lp/lp.sh
@@ -48,8 +48,10 @@ dest=${LPDEST:-${PRINTER:-lp}}
#
# 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 We include the -s flag as a dummy. SUSv2 requires it,
+# although we do not yet emit the affected messages.
#
-while getopts "cd:n:o:" option
+while getopts "cd:n:o:s" option
do
case $option in
@@ -61,6 +63,8 @@ do
ncopies="-#${OPTARG}";;
o) # (printer option)
: ;;
+ s) # (silent option)
+ : ;;
*) # (error msg printed by getopts)
exit 2;;
esac
OpenPOWER on IntegriCloud