[comp.os.minix] pr bug fix

kjh@pollux.usc.edu (Kenneth J. Hendrickson) (04/11/91)

When pr prints from stdin, the current date and time should be printed.
However, when pr prints from a file, the last modification date of the
file should be printed in the header.  (This is what happens on the big
BSD box.)

Minix 1.5.10 pr always prints the current date and time.
Here is a simple bug fix:

table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 pr.c.cdif
M*BHJ("]U<W(O<W)C+VUI;FEX+V-O;6UA;F1S+W!R+F,)1G)I($IU;" R," Pz
M,#HQ-3HR-R Q.3DP"BTM+2!P<BYC"5=E9"!!<'(@,3 @,C(Z-#,Z-#4@,3DYy
M,0HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#0P+#0X("HJ*BH*+2TM(#0P+#4T("TMx
M+2T*(" @*@EB>2!.54U?5TE$5$@L(&9O<B!E86-H(&9I;&4L(')E<W5L=&ENw
M9R!I;B!W:61T:"!F:6YA;&QY"B @("H)8F5I;F<@<V\@<VUA;&P@=&AA="!Nv
M;W1H:6YG('=A<R!P<FEN=&5D+B!5<V5D('1H92!L;V-A; H@(" J"79A<FEAu
M8FQE("=W)R!F;W(@=&AE('=I9'1H(&%D:G5S=&UE;G0@*&EN('!R:6YT*"DIt
M"BL@("H**R @*B!-;V1I9FEE9#H@2V5N;F5T:"!*+B!(96YD<FEC:W-O;@DHs
M,3 @07!R:6P@,3DY,2D**R @*@ED871E(&EN(&AE861E<B!S:&]U;&0@8F4@r
M;&%S="!M;V1I9FEC871I;VX@9&%T92!F;W(@9FEL97,L"BL@("H)86YD('1Hq
M92!C=7)R96YT('1I;64@9F]R('-T9&EN+@H@(" J+PH@( H@("-I;F-L=61Ep
M(#QS=&1I;RYH/@HK("-I;F-L=61E(#QS>7,O='EP97,N:#X**R C:6YC;'5Do
M92 \<WES+W-T870N:#X*(" *(" C9&5F:6YE($1%1E],14Y'5$@)-C8*(" Cn
M9&5F:6YE($1%1E]724142 DW.0HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#0U,RPTm
M-C @*BHJ*@H@('L*(" @(&5X=&5R;B!L;VYG('1I;64H*3L*(" @(&QO;F<@l
M=#L*(2 *(2 @("AV;VED*2!T:6UE*"9T*3L*(" @('!R:6YT7W1I;64H="D[k
M"B @("!P<FEN=&8H(B @)7,@("!086=E("5D7&Y<;EQN(BP@:&5A9&5R+"!Pj
M86=E*3L*("!]"BTM+2 T-3DL-#<Q("TM+2T*("!["B @("!E>'1E<FX@;&]Ni
M9R!T:6UE*"D["B @("!L;VYG('0["B$@("!S=')U8W0@<W1A="!B=68["B$@h
M"B$@("!I9B H<W1R;&5N*&AE861E<BDI('L*(2 @( ES=&%T*&AE861E<BP@g
M)F)U9BD["0DO*B!U<V4@;&%S="!M;V1I9GD@=&EM92!F;W(@9FEL92 J+PHAf
M(" @"70@/2!B=68N<W1?;71I;64["B$@("!](&5L<V4*(2 @( DH=F]I9"D@e
M=&EM92@F="D["0DO*B!U<V4@8W5R<F5N="!T:6UE(&9O<B!S=&1I;B J+PH@d
M(" @<')I;G1?=&EM92AT*3L*(" @('!R:6YT9B@B(" E<R @(%!A9V4@)61<c
;;EQN7&XB+"!H96%D97(L('!A9V4I.PH@('T*b
 a
end

-- 
favourite oxymorons:   student athlete, military justice, mercy killing
Ken Hendrickson N8DGN/6       kjh@usc.edu      ...!uunet!usc!pollux!kjh