From 072a126d12b4427e7fa2cc448b604f92e4cfe5f6 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 29 Sep 2009 21:28:32 +0000 Subject: [PATCH] Fix using lp(1) without the new -t option after r194171. PR: standards/129554 Tested by: Steve Kargl MFC after: 1 week --- usr.sbin/lpr/lp/lp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/lpr/lp/lp.sh b/usr.sbin/lpr/lp/lp.sh index 03ad887b54d2..dbec0531d717 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}"} "$@"