Re: Bug in 'cal' utility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/05/11 15:52, David Watzke wrote:
> Hello,
> 
> there's a bug in the 'cal' utility. It says:
> usage: cal [-13smjyV] [[[day] month] year]
> 
> but it should be
> usage: cal [-13smjyV] [[[month] day] year]
> instead, because:
> 
> $ cal 20 7
> cal: illegal month value: use 1-12
> $ cal 7 20
>        July 20
> [... etc.]

Nope, you wanted:
$ cal 20 7 2011

If you specify 2 options they're interpreted as month & year
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux