Date: Tue, 6 Oct 2009 21:23:49 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r197815 - in stable/8/usr.sbin/lpr: . lp Message-ID: <200910062123.n96LNo2R064347@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Tue Oct 6 21:23:49 2009 New Revision: 197815 URL: http://svn.freebsd.org/changeset/base/197815 Log: MFC r197625: Fix using lp(1) without the new -t option after r194171. Approved by: re (kib) Modified: stable/8/usr.sbin/lpr/ (props changed) stable/8/usr.sbin/lpr/lp/lp.sh Modified: stable/8/usr.sbin/lpr/lp/lp.sh ============================================================================== --- stable/8/usr.sbin/lpr/lp/lp.sh Tue Oct 6 20:35:41 2009 (r197814) +++ stable/8/usr.sbin/lpr/lp/lp.sh Tue Oct 6 21:23:49 2009 (r197815) @@ -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}"} "$@"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910062123.n96LNo2R064347>