diff options
-rw-r--r-- | usr.sbin/lpr/lp/lp.1 | 7 | ||||
-rw-r--r-- | usr.sbin/lpr/lp/lp.sh | 6 |
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 |