package bsdmainutils provides /usr/bin/cal which supports -w according to the man page, but it doesn't

Bug #1431886 reported by Tom van Leeuwen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cal (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

according to `man cal`, we should be able to use the -w option to print week numbers:
     -w Print the number of the week below each week column.

When you try that, you'll get the following:
tom@laptole:~$ cal -w
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: [-NC31] [-A months] [-B months]
For debug the highlighting: [-H yyyy-mm-dd] [-d yyyy-mm]

the /usr/bin/cal executable has been provides by package bsdmainutils of which I'm having:
tom@laptole:~$ apt-cache policy bsdmainutils
bsdmainutils:
  Installed: 9.0.5ubuntu1
  Candidate: 9.0.5ubuntu1
  Version table:
 *** 9.0.5ubuntu1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status

tom@laptole:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic

Revision history for this message
Trev Peterson (trev-advanced-reality) wrote :

I can confirm this. It also doesn't accept the -h option and other ones as well. ncal -h works but cal -h errors. Cal seems pretty broken, lots of open bugs on this for many years but no fixes seem to be coming. Let me know if I can help troubleshoot this further if anyone is interested in fixing this. Thanks,

Revision history for this message
Trev Peterson (trev-advanced-reality) wrote :

I see these problems on ubuntu 17.10 with bsdmainutils version 9.0.12+nmu1ubuntu1

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cal (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.