On 27/11/15 15:22, Evgenii Sovetkin wrote:
Hello everyone, just noticed a funny behaviour of the cal program... % cal -n2 Produces calendar for November and December. % cal -n3 Produces calendar for October, November and December. % cal -n4 Produces calendar for November, December, January and February. I don't think it is the expected output. The version of cal is from util-linux 2.27.
Thanks for your report, Evgenii. The man page says:
-n , --months number Display number of months, starting from the month containing the date.
So the problem is that > cal -n 3 > cal --months 3 is acting as > cal -3 Maybe the command line parser is getting a bit confused. -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html