[net.micro.trs-80] Bug in new /usr/bin/calendar w. fix

wtb@bles.UUCP (10/20/86)

*********** XENIX ALERT #18  - W.BLESSUM - 10/16/86  ****
RE: Bug in TANDY XENIX 3.0 calendar

My calendar program suddenly quit sending me my reminders so
I investigated the reason:
calendar works by generating each night with /usr/lib/calprog an argument
for use by   egrep  to locate appropriate lines in each home directory to
mail to that user.  The argument is generated by another program which
was changed but apparently not totally debugged when the development system
upgrade was sent out.

The following argument is being produced by the calprog program:

(^|[ (,;])(([Oo]ct[^ ]* *|010/|\*/)0*16)([^0123456789]|$)
(^|[ (,;])(([Oo]ct[^ ]* *|010/|\*/)0*17)([^0123456789]|$)
                          ---
notice that this makes egrep look for month  010  -  this bug has
not shown itself until October because this is the first
double digit month since the update came out!

Several fixes are possible - My fix is to put a filter in the
"generate the egrep argument" line in /usr/bin/calendar :

/usr/lib/calprog |sed 's/011\//11\//
s/012\//12\//
s/010\//10\//'>$tmp			# correct month error in egrep arg


"Someday they will make those D... things reliable"
William T. Blessum,M.D.     (... {akgua|ihnp4}!petro!bles!wtb)
7950 Floyd Curl Dr #102     San Antonio, TX 78229-3955  (512)692-0977