Fix using lp(1) without the new -t option after r194171.

PR:		standards/129554
Tested by:	Steve Kargl
MFC after:	1 week
This commit is contained in:
Jilles Tjoelker 2009-09-29 21:28:32 +00:00
parent b2fc0323ae
commit 072a126d12
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197625

View File

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