Red Hat Bugzilla – Bug 208518
cal highlight has no commandline option
Last modified: 2007-11-30 17:11:44 EST
Description of problem:
There is no way to control 'cal' highlight of current date from command-line. It
is possible but requires reading of source code to figure out a way.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. cal --help
3. TERM= cal
1. current date highlighted
2. no option to control highlight
3. no highligh, but had to check source code first
Normally options to control program behavior are done from command-line.
Fortunately cal has plenty of options available. Perhaps it would be better to
default to non-highlight anbd allow user to opt for highlight through option
"-v" (with an alias). But also, it might be useful to generalize to
highlighting specific day(s) and not just today, with "-v YYYY/MM/DD" or "-v today".
I have already patched for above change, but will not attach it because normal
RedHat behavior is to reject everything I submit.
This is good idea, but we're very conservative with new command line options to
basic system utils. We prefer add these changes to upstream code rather than
create a distribution specific option.
Please, send the patch (to me or to upstream mailing list:
util-linux-ng(at)vger.kernel.org or add it to BZ as attachment). Thanks.
Well, this feature will be added to version util-linux-ng-2.14.