Bug in /usr/lib/calendar (with fix)

lee at unmvax.UUCP lee at unmvax.UUCP
Wed Feb 27 16:04:02 AEST 1985


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",



More information about the Comp.unix.wizards mailing list