On Sun, May 22, 2011 at 04:53:40PM +0200, Daniel O'Connor
wrote:> Hi,
> I have the following calendar entry..
>
> Tue+2 test
>
> for the second Tuesday in the month. This used to work in 6.x however it
prints the following in 7.x and onward
> [maarsy-acq2 14:47] ~ >calendar -f testcal
> Unprocessed:
> -------
> date: |Tue+2|
> flags: 10a - dayofweek modifierindex variable
> modifierindex: |+2|
> dayofweek: |Tue| (2)
> Ignored: Tue+2 test
>
> Although now that I go to test it I find that 4.8 and 6.3 don't print
anything for..
> calendar -f testcal -A 120
>
> which surprises me because I definitely received email from the system when
it ran calendar -a..
Way way back...like in 1996 when I changed calendar to actually print the
date of variable event entries, like your Tue+2 entry (it used to print
"Tue+2", there were some issues with some month wraps, etc and some
odd end cases that just displayed improperly.
A lot of times a normal calendar run would print just fine, but different
values of -A #### wouldn't match up. Several years after making the
changes,
I wished I had just gutted all of the date processing in calendar and
started fresh instead of shoe-horning in the changes I made.
Around that time there was some debate about just importing OpenBSD's (or
maybe it was NetBSD's) calendar so I left it alone and forgot about it.
That import never happened, and there are still some oddities floating
around, as you can see.
--
Mike Pritchard
mpp @ FreeBSD.org
"If tyranny and oppression come to this land, it will be in the guise
of fighting a foreign enemy." - James Madison (1787)