Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Mar 2010 00:16:04 +0100 (CET)
From:      Alexander Best <alexbestms@wwu.de>
To:        Edwin Groothuis <edwin@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r204849 - head/usr.bin/ncal
Message-ID:  <permail-201003072316041e86ffa8000073e1-a_best01@message-id.uni-muenster.de>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
could you have another look at the -J option? it seems highlighting still
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 might want to consider the following patch.

cheers.
alex

[-- Attachment #2 --]
Index: ncal.1
===================================================================
--- ncal.1	(revision 204850)
+++ ncal.1	(working copy)
@@ -117,8 +117,6 @@
 Print the number of the week below each week column.
 .It Fl y
 Display a calendar for the specified year.
-.It Fl b
-Switch to backwards compatibility mode (for debugging).
 .It Fl d Ar yyyy-mm-dd
 Use
 .Ar yyyy-mm-dd
Index: ncal.c
===================================================================
--- ncal.c	(revision 204850)
+++ ncal.c	(working copy)
@@ -271,9 +271,6 @@
 			nswitch = ndaysj(&never);
 			flag_julian_cal = 1;
 			break;
-		case 'b':
-			flag_backward = 1;
-			break;
 		case 'd':
 			flag_highlightdate = optarg;
 			break;
@@ -412,8 +409,7 @@
 	    "usage: cal [-hjy] [[month] year]\n"
 	    "       cal [-hj] [-m month] [year]\n"
 	    "       ncal [-hJjpwy] [-s country_code] [[month] year]\n"
-	    "       ncal [-hJeo] [year]\n"
-	    "for debug the highlighting: [-b] [-d yyyy-mm-dd]\n",
+	    "       ncal [-hJeo] [year]\n",
 	    stderr);
 	exit(EX_USAGE);
 }

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-201003072316041e86ffa8000073e1-a_best01>