MFC r197625: Fix using lp(1) without the new -t option after r194171.
Approved by: re (kib)
This commit is contained in:
parent
c8c92b5491
commit
815fc7356d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=197815
@ -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}"} "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user