svn commit: r197625 - head/usr.sbin/lpr/lp

Jilles Tjoelker jilles at FreeBSD.org
Tue Sep 29 21:28:33 UTC 2009


Author: jilles
Date: Tue Sep 29 21:28:32 2009
New Revision: 197625
URL: http://svn.freebsd.org/changeset/base/197625

Log:
  Fix using lp(1) without the new -t option after r194171.
  
  PR:		standards/129554
  Tested by:	Steve Kargl
  MFC after:	1 week

Modified:
  head/usr.sbin/lpr/lp/lp.sh

Modified: head/usr.sbin/lpr/lp/lp.sh
==============================================================================
--- head/usr.sbin/lpr/lp/lp.sh	Tue Sep 29 21:25:59 2009	(r197624)
+++ head/usr.sbin/lpr/lp/lp.sh	Tue Sep 29 21:28:32 2009	(r197625)
@@ -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-head mailing list