[Bug 1736632] Re: cal -h doesn't disable highlighting
Paul Collins
1736632 at bugs.launchpad.net
Thu Apr 10 02:48:16 UTC 2025
It seems this was done deliberately some time ago so that cal would be
100% drop-in compatible. Then in 2020 highlighting was disabled in cal
entirely, upstream in Debian: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=904839
Regarding the documentation, it's a little subtle, but the manual page
covers multiple commands, and in the SYNOPSIS section at the top, -h is
not shown as a valid option for cal, and valid for ncal, which seems to
match what each command supports.
** Bug watch added: Debian Bug tracker #904839
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904839
--
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/1736632
Title:
cal -h doesn't disable highlighting
Status in bsdmainutils package in Ubuntu:
Confirmed
Bug description:
% lsb_release -rd
Description: Ubuntu 17.10
Release: 17.10
% apt-cache policy bsdmainutils
bsdmainutils:
Installed: 9.0.12+nmu1ubuntu1
Candidate: 9.0.12+nmu1ubuntu1
The man page for `cal` says the following:
The options are as follows:
-h Turns off highlighting of today.
Expected output
% cal -h
December 2017
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Actual output
% cal -h
Usage: cal [general options] [-jy] [[month] year]
cal [general options] [-j] [-m month] [year]
ncal -C [general options] [-jy] [[month] year]
ncal -C [general options] [-j] [-m month] [year]
ncal [general options] [-bhJjpwySM] [-H yyyy-mm-dd] [-s country_code] [[month] year]
ncal [general options] [-bhJeoSM] [year]
General options: [-31] [-A months] [-B months] [-d yyyy-mm]
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: bsdmainutils 9.0.12+nmu1ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
CurrentDesktop: LXDE
Date: Tue Dec 5 18:13:32 2017
InstallationDate: Installed on 2017-12-04 (1 days ago)
InstallationMedia: Lubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
SourcePackage: bsdmainutils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/1736632/+subscriptions
More information about the foundations-bugs
mailing list