Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2011 22:57:15 -0500
From:      Mike Pritchard <mpp@mppsystems.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        freebsd-stable List <freebsd-stable@freebsd.org>
Subject:   Re: calendar(1) problems
Message-ID:  <20110524035715.GA16337@mppsystems.com>
In-Reply-To: <DAC48245-8168-4361-A691-2C57CDEE23D7@gsoft.com.au>
References:  <DAC48245-8168-4361-A691-2C57CDEE23D7@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110524035715.GA16337>