From owner-svn-src-all@FreeBSD.ORG Tue Mar 9 11:01:40 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6F3E1065672; Tue, 9 Mar 2010 11:01:40 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from k7.mavetju.org (ppp113-58.static.internode.on.net [150.101.113.58]) by mx1.freebsd.org (Postfix) with ESMTP id 8ACE68FC20; Tue, 9 Mar 2010 11:01:40 +0000 (UTC) Received: by k7.mavetju.org (Postfix, from userid 1001) id 869AC451C3; Tue, 9 Mar 2010 22:00:17 +1100 (EST) Date: Tue, 9 Mar 2010 22:00:17 +1100 From: Edwin Groothuis To: Alexander Best Message-ID: <20100309110017.GG1761@mavetju.org> References: <20100307233409.GF2682@mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r204849 - head/usr.bin/ncal X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 11:01:41 -0000 On Mon, Mar 08, 2010 at 01:39:28AM +0100, Alexander Best wrote: > Edwin Groothuis schrieb am 2010-03-08: > > On Mon, Mar 08, 2010 at 12:16:04AM +0100, Alexander Best wrote: > > > could you have another look at the -J option? it seems highlighting > > > still > > > Aha, only -J in "month only" view is still not working. Will take > > care of it later. Also add a bunch of regression tests to it, because > > of all of this. > > > > isn't enabled in combination with it. also i'm wondering what the > > > purpose of > > > the -b switch is. running `cal` and `ncal -b` seems to be doing the > > > very same > > > thing (setting flag_backward = 1). > > > You can't run "cal" until you have installed it, while being able > > to run "ncal -b" and coming into "cal" mode is kind of nice. > > thanks for the hint. the -b switch definitely comes in handy when `cal` isn't > available, because one is running ncal from /usr/src/usr.bin. > > will the -b switch disappear once you ncal/cal works properly with > highlighting? It will be hard to write proper regression tests if you can't properly specify what you want :-) > what confused me a little is the output of something like `ncal 10 2011`. > judging from ncal(1) i guessed the output to be October of 2011, yet the > output is all months from October 2011 to September 2012. Yeah, fixed. > i tried `ncal -m 10 2011` instead and the output was just the same. so what's > the right way to see the entry for lets say October 2011? > > another issue i'm having is the -m switch in combination with f and p. judging > from ncal(1) `ncal -m 3p` should output February 2010 and `ncal -m 3f` April > 2010. however instead of printing the previous and next month the previous and > next year gets printed. If I understand correctly: -m 1 gives this years January (which is 2010) -m 1p gives the previous January (which is 2010) -m 1f gives the next January (which is 2011) -m 9 gives this years September (which is 2010) -m 9p gives the previous September (which is 2009) -m 9f gives the next September (which is 2010) And now the tricky one: -m 3 gives this years March (which is 2010) -m 3p gives the previous March (which is 2009) -m 3f gives the next March (which is 2011) Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/