Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!inuxc!pur-ee!uiucdcs!convex!bles!wtb From: wtb@bles.UUCP Newsgroups: net.micro.trs-80 Subject: Bug in new /usr/bin/calendar w. fix Message-ID: <-3790780@bles> Date: Sun, 19-Oct-86 20:40:00 EDT Article-I.D.: bles.-3790780 Posted: Sun Oct 19 20:40:00 1986 Date-Received: Sat, 25-Oct-86 05:22:19 EDT Lines: 33 Nf-ID: #N:bles:-3790780:000:1300 Nf-From: bles.UUCP!wtb Oct 19 19:40:00 1986 *********** 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