svn commit: r197819 - in stable/7/usr.sbin/lpr: . lp

Jilles Tjoelker jilles at FreeBSD.org
Tue Oct 6 21:49:14 UTC 2009


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}"} "$@"


More information about the svn-src-all mailing list