Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 21:28:32 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197625 - head/usr.sbin/lpr/lp
Message-ID:  <200909292128.n8TLSWoC096329@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}"} "$@"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909292128.n8TLSWoC096329>