[Bug 908233] Re: cal -M (start week on Monday) don't work
Dave Gilbert
ubuntu at treblig.org
Tue Dec 27 21:50:27 UTC 2011
Hi Ivan,
Hmm this is a bit complicated; there are two things going on - and I'm not sure which cygwin do:
1) bsdmainutils uses an oldschool Unix trick to use the same binary for
cal and ncal; it decides what to do based on the name of the binary that
it was run as; I'm not sure if cygwin does the same thing or not. Now,
if it's run as 'cal' it sets a backwards compatibility flag.
2) The -M option doesn't seem to be in the bsdmainutils by default, but
it comes from a patch in the debian package (ncal_mfdow.diff) and it has
the code:
+ case 'M':
+ if (flag_backward)
+ usage();
+ weekstart = 1;
+ break;
So the intention there is pretty clear it wants that when in backward
compatibility mode it wants to tell you M isn't supported.
So, not sure what cygwin uses.
Dave
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/908233
Title:
cal -M (start week on Monday) don't work
Status in “bsdmainutils” package in Ubuntu:
Triaged
Bug description:
man page says:
-M Weeks start on Monday.
But when I run
$ cal -M
Usage: cal [general options] [-hjy] [[month] year]
cal [general options] [-hj] [-m month] [year]
ncal [general options] [-bhJjpwySM] [-s country_code] [[month] year]
ncal [general options] [-bhJeoSM] [year]
General options: [-NC3] [-A months] [-B months]
For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/908233/+subscriptions
More information about the foundations-bugs
mailing list