add "lp -s" switch, from darcy@druid.net in pr#5713. document "lp -s" and "lp -o"
This commit is contained in:
parent
2abb91b62a
commit
33c0bbba35
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: lp,v 1.2 1997/10/05 12:48:36 mrg Exp $
|
||||
# $NetBSD: lp,v 1.3 1998/07/07 02:01:37 mrg Exp $
|
||||
#
|
||||
# Copyright (c) 1995 Joerg Wunsch
|
||||
#
|
||||
|
@ -50,12 +50,14 @@ 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.
|
||||
#
|
||||
while getopts "cd:n:o:" option
|
||||
while getopts "cd:n:o:s" option
|
||||
do
|
||||
case $option in
|
||||
|
||||
c) # copy files before printing
|
||||
symlink="";;
|
||||
s) # symlink files (SVR4 compatibility)
|
||||
symlink="-s";;
|
||||
d) # destination
|
||||
dest="${OPTARG}";;
|
||||
n) # number of copies
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lp.1,v 1.2 1997/10/05 12:48:37 mrg Exp $
|
||||
.\" $NetBSD: lp.1,v 1.3 1998/07/07 02:01:37 mrg Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Joerg Wunsch
|
||||
.\"
|
||||
|
@ -42,7 +42,8 @@
|
|||
.Nd front-end to the print spooler
|
||||
.Sh SYNOPSIS
|
||||
.Nm lp
|
||||
.Op Fl c
|
||||
.Op Fl cs
|
||||
.Op Fl o Ar option
|
||||
.Op Fl d Ar printer
|
||||
.Op Fl n Ar num
|
||||
.Op Ar name ...
|
||||
|
@ -53,7 +54,6 @@ is a front-end to the print spooler as required by the
|
|||
specification. It effectively invokes
|
||||
.Xr lpr 1
|
||||
with the proper set of arguments.
|
||||
|
||||
It generally prints the named files on the destination printer.
|
||||
.Pp
|
||||
The following options are available:
|
||||
|
@ -78,6 +78,12 @@ are taken as the destination printer.
|
|||
Specify that
|
||||
.Ar num
|
||||
copies of each of the named files shall be printed.
|
||||
.It Fl s
|
||||
Use symlinks rather than copying the file. This is the default and is
|
||||
provided as a compatibility option for SVR4.
|
||||
.It Fl o
|
||||
Printer specific options. Not supported, provided only as a compatibility
|
||||
option for SVR4.
|
||||
.El
|
||||
.Sh ENVIRONMENT
|
||||
As described above, the variables
|
||||
|
|
Loading…
Reference in New Issue