With the standard terminal when I type
cal -w
I get a usage description indicating that 'cal' did not recognize the '-w' but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?
With the standard terminal when I type
cal -w
I get a usage description indicating that 'cal' did not recognize the '-w' but the '-w' is described in 'info cal' documentation. Is there a setting that enables this?
There is no setting to change.
cal
and ncal
share documentation. The -w option is available only for ncal
This is explained in the 'usage' error you receive when you try to use -w with cal
.
If you wish, feel free to file a bug report against the 'bsdmainutils' package with recommended clarification to the documentation.
Typing cal -w
in the terminal shows extra arguments supported by cal
and even more extra arguments supported by ncal
:
$ 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]
cal
only supports h
, j
and y
argumentsncal
supports same arguments plus w
option you seek and many more
-w
only applies toncal
– steeldriver Dec 07 '18 at 14:39-w
option is shown inman cal
however it seems to only work with thencal
command – Charles Green Dec 07 '18 at 14:43w
as an option forncal
only I think? – steeldriver Dec 07 '18 at 14:47cal
andncal
is the same page and it is up to the OP to realize that both commands are discussed and not all options are available to both commands. – Charles Green Dec 07 '18 at 14:55