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:
parent
b2fc0323ae
commit
072a126d12
@ -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…
x
Reference in New Issue
Block a user