From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_12_24 autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 31553 invoked from network); 6 Oct 2021 09:10:18 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2021 09:10:18 -0000 Received: from oat.nine.sirjofri.de ([5.45.105.127]) by 4ess; Tue Oct 5 07:27:27 -0400 2021 Received: from sirjofri.de ([95.90.219.31]) by oat; Tue Oct 5 13:27:16 +0200 2021 Date: Tue, 5 Oct 2021 11:27:16 +0000 (UTC) From: sirjofri To: 9front@9front.org Message-ID: <2d0ebedb-b64e-4843-a82a-7a01a2474727@sirjofri.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Correlation-ID: <2d0ebedb-b64e-4843-a82a-7a01a2474727@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: agile self-healing realtime-java database rails Subject: [9front] Calendar: -p multiple days Reply-To: 9front@9front.org Precedence: bulk Hello, I noticed that calendar -p doesn't work like I expect. Iirc it prints dates for the current day as well as the current day plus the number specified with -p. This patch changes this behaviour. It will print all dates between the current date (inclusive) and the range. -p 3 will print the entries for the dates n, n+1, n+2 and n+3. Warning: The patch is really old now. sirjofri http://sirjofri.de/oat/patches/calendar.patch 74c74 < if(ahead){ --- > while(ahead > 1){ 78a79 > ahead--;