diff options
author | jilles <jilles@FreeBSD.org> | 2009-09-29 21:28:32 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-09-29 21:28:32 +0000 |
commit | d526489dfb536d6bacae5e12e288b6d5dec2fbbf (patch) | |
tree | e6984bad82ac685e601b958def5eca1273f4c2cc | |
parent | 73f8efa72d5c125475fbad60394b0a7e34054695 (diff) | |
download | FreeBSD-src-d526489dfb536d6bacae5e12e288b6d5dec2fbbf.zip FreeBSD-src-d526489dfb536d6bacae5e12e288b6d5dec2fbbf.tar.gz |
Fix using lp(1) without the new -t option after r194171.
PR: standards/129554
Tested by: Steve Kargl
MFC after: 1 week
-rw-r--r-- | usr.sbin/lpr/lp/lp.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lp/lp.sh b/usr.sbin/lpr/lp/lp.sh index 03ad887..dbec053 100644 --- a/usr.sbin/lpr/lp/lp.sh +++ b/usr.sbin/lpr/lp/lp.sh @@ -70,7 +70,7 @@ do s) # (silent option) : ;; t) # title for banner page - title="-J${OPTARG}";; + title="${OPTARG}";; *) # (error msg printed by getopts) exit 2;; esac @@ -78,4 +78,4 @@ done shift $(($OPTIND - 1)) -exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} "${title}" "$@" +exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} ${title:+-J"${title}"} "$@" |