From: "Ángel González" <ingenit@zoho.com>
To: Evgenii Sovetkin <e.sovetkin@gmail.com>
Cc: util-linux@vger.kernel.org
Subject: Re: bug in the cal
Date: Fri, 27 Nov 2015 18:19:20 +0100 [thread overview]
Message-ID: <56589098.1080209@zoho.com> (raw)
In-Reply-To: <20151127142227.GA28400@bigbear.stochastik.rwth-aachen.de>
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.
next prev parent reply other threads:[~2015-11-27 17:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 14:22 bug in the cal Evgenii Sovetkin
2015-11-27 17:19 ` Ángel González [this message]
2015-11-28 0:15 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56589098.1080209@zoho.com \
--to=ingenit@zoho.com \
--cc=e.sovetkin@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.