🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.micro.trs-80
1 messages
1 total messages Started by wtb Mon, 20 Oct 1986 00:40
Bug in new /usr/bin/calendar w. fix
#677
Author: wtb
Date: Mon, 20 Oct 1986 00:40
33 lines
1828 bytes

*********** 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads