Hey 9front. finally I hope this mail arrives... The following patch changes calendar behaviour. Today is the first. If I call calendar with -p 5 it looks at the 1,2,6 and misses my dates on 3-5. That doesn't really make sense and is not how I understand the man page. This patch changes it's behavior to look at all dates between today and today+5, so in the example above it looks at 1,2,6,5,4,3 (in that order). (/sys/src/cmd/calendar.c) 74c74 < if(ahead){ --- > while(ahead > 1){ 78a79 > ahead--;