On Fri, Aug 29, 2014 at 12:57:33PM +0200, peej wrote:
> cal -m 9
> shows September, as expected
> 
> cal -m 9p
> should show August.

I wouldn't be quite so sure. The manpage says:

If month is specified as a decimal number, it may be followed by the letter ‘f’
or ‘p’ to indicate the following or preceding month of that number,
respectively.

This is not exactly very clear. The progam seems to interpret this by showing 
the
same month in the following/preceding year:

cal -m9:
   September 2014     
So Mo Di Mi Do 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              
        
cal -m9p:
              
   September 2013     
So Mo Di Mi Do 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                 

Do you have any evidence that it should display August instead? Or in other
words, what needs fixing, the code or the documentation?

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to