aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lp
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-03-08 10:02:11 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-03-08 10:02:11 +0000
commit843422401a4dafbdacd268708696612250a6e754 (patch)
treef8923cfb005db0e9a8f00a4a6dbdb3d3e6e9f12f /usr.sbin/lpr/lp
parente3b82d958e1cceba9e7afee8487867054434106a (diff)
downloadsrc-843422401a4dafbdacd268708696612250a6e754.tar.gz
src-843422401a4dafbdacd268708696612250a6e754.zip
Add a dummy -s option for SUSv2 compatibility.
PR: 17256 Reported by: Brooks Davis <brooks@one-eyed-alien.net> Approved by: jkh (release engineer)
Notes
Notes: svn path=/head/; revision=57816
Diffstat (limited to 'usr.sbin/lpr/lp')
-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 808d0fa8c599..81d4fd9135b0 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 317f840f8ce9..e7c06882c0f9 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