From owner-freebsd-stable@FreeBSD.ORG Tue May 24 04:09:41 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65D611065675 for ; Tue, 24 May 2011 04:09:41 +0000 (UTC) (envelope-from mpp@mppsystems.com) Received: from mail963c35.nsolutionszone.com (mail963c35.nsolutionszone.com [209.235.152.153]) by mx1.freebsd.org (Postfix) with ESMTP id 188488FC0C for ; Tue, 24 May 2011 04:09:40 +0000 (UTC) X-POP-User: mppsystems.gulftel.com Received: from mppsystems.com (99-195-227-130.dyn.centurytel.net [99.195.227.130]) by mail963c35.nsolutionszone.com (8.13.6/8.13.1) with ESMTP id p4O3vFae012913; Tue, 24 May 2011 03:57:16 GMT Received: by mppsystems.com (Postfix, from userid 1000) id 2B1FCF1834; Mon, 23 May 2011 22:57:15 -0500 (CDT) Date: Mon, 23 May 2011 22:57:15 -0500 From: Mike Pritchard To: "Daniel O'Connor" Message-ID: <20110524035715.GA16337@mppsystems.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CSC: 0 X-CHA: v=1.1 cv=FaP+qPOmcLigx2VS2h1+/mVlCb38u491VNzw7+SmOLQ= c=1 sm=1 a=wom5GMh1gUkA:10 a=xR__N31QaFoA:10 a=kj9zAlcOel0A:10 a=dFLkLl5xsaYkTl874K+Uyw==:17 a=6I5d2MoRAAAA:8 a=IljK0TjA5CYgJtuJYJMA:9 a=CjuIK1q_8ugA:10 a=fgf5PR_cwQYA:10 a=dFLkLl5xsaYkTl874K+Uyw==:117 Cc: freebsd-stable List Subject: Re: calendar(1) problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 04:09:41 -0000 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)