summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/lpr/lp/lp.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lp/lp.sh b/usr.sbin/lpr/lp/lp.sh
index 03ad887..dbec053 100644
--- a/usr.sbin/lpr/lp/lp.sh
+++ b/usr.sbin/lpr/lp/lp.sh
@@ -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}"} "$@"
OpenPOWER on IntegriCloud