[3141] in Athena Bugs
/usr/athena/psroff
daemon@ATHENA.MIT.EDU (John Carr)
Fri Sep 8 21:46:15 1989
To: bugs@ATHENA.MIT.EDU
Date: Fri, 08 Sep 89 21:46:01 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
Psroff is inconsistent with other printing utilities, because it does not
accept printer names with the syntax
-P printer
but only as
-Pprinter
Here is a fix:
*** /usr/athena/psroff Wed May 31 18:14:46 1989
--- psroff Fri Sep 8 21:41:26 1989
***************
*** 41,47 ****
-D*) echo 'use -D fontdirectory' 1>&2 ;
exit 1 ;;
-#*|-h|-m) spool="$spool $1" ;;
! -P*) printer=$1 ;;
-C) spool="$spool $1 $2" ; shift ;;
-J) spool="$spool $1 $2" ; jobname=$2 ; shift ;;
-L) land=sed ; land1="/^\/xi /s/0 72 11 mul translate/90 rotate/" ;;
--- 41,51 ----
-D*) echo 'use -D fontdirectory' 1>&2 ;
exit 1 ;;
-#*|-h|-m) spool="$spool $1" ;;
! -P*) printer=$1
! if [ ${printer}x = -Px ]; then
! printer=-P$2
! shift
! fi;;
-C) spool="$spool $1 $2" ; shift ;;
-J) spool="$spool $1 $2" ; jobname=$2 ; shift ;;
-L) land=sed ; land1="/^\/xi /s/0 72 11 mul translate/90 rotate/" ;;