Index: usr.sbin/lpr/lp/lp.sh =================================================================== --- usr.sbin/lpr/lp/lp.sh (revision 197481) +++ usr.sbin/lpr/lp/lp.sh (working copy) @@ -70,7 +70,7 @@ 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 @@ 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}"} "$@"