Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site unmvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!whuxl!whuxlm!akgua!sdcsvax!dcdwest!ittvax!decvax!genrad!panda!talcott!harvard!seismo!cmcl2!lanl!unmvax!lee From: lee@unmvax.UUCP Newsgroups: net.unix-wizards Subject: Bug in /usr/lib/calendar (with fix) Message-ID: <704@unmvax.UUCP> Date: Wed, 27-Feb-85 01:04:02 EST Article-I.D.: unmvax.704 Posted: Wed Feb 27 01:04:02 1985 Date-Received: Sun, 3-Mar-85 02:59:44 EST Distribution: net Organization: Univ. of New Mexico, Albuquerque Lines: 23 Subject: Date preceeded by tab is not found Index: /usr/src/usr.bin/calendar/calendar.c 4.2BSD FIX Description: According to the documentation it'll find the date anywhere on the line. Well, only if it doesn't immediately follow a tab. Repeat-By: Put a tab in before the date. Fix: Apply this diff... RCS file: RCS/calendar.c,v retrieving revision 1.1 diff -r1.1 calendar.c 33c33 < printf("(^|[ (,;])((%s[^ ]* *|(0%d|%d)/)0*%d)([^0123456789]|$)\n", --- > printf("(^|[ \t(,;])((%s[^ ]* *|(0%d|%d)/)0*%d)([^0123456789]|$)\n", 36c36 < printf("(^|[ (,;])((\\* *)0*%d)([^0123456789]|$)\n", --- > printf("(^|[ \t(,;])((\\* *)0*%d)([^0123456789]|$)\n",