Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2009 21:49:13 +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-7@freebsd.org
Subject:   svn commit: r197819 - in stable/7/usr.sbin/lpr: . lp
Message-ID:  <200910062149.n96LnDgL065032@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Tue Oct  6 21:49:13 2009
New Revision: 197819
URL: http://svn.freebsd.org/changeset/base/197819

Log:
  MFC r197625: Fix using lp(1) without the new -t option after r195349.

Modified:
  stable/7/usr.sbin/lpr/   (props changed)
  stable/7/usr.sbin/lpr/lp/lp.sh

Modified: stable/7/usr.sbin/lpr/lp/lp.sh
==============================================================================
--- stable/7/usr.sbin/lpr/lp/lp.sh	Tue Oct  6 21:46:03 2009	(r197818)
+++ stable/7/usr.sbin/lpr/lp/lp.sh	Tue Oct  6 21:49:13 2009	(r197819)
@@ -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?200910062149.n96LnDgL065032>