Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2020 00:48:33 +0100
From:      "Julian H. Stacey" <jhs@berklix.com>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Cc:        Diane Bruce <db@db.net>, Stefan Esser <se@freebsd.org>, Greg Balfour <greg.bal4@gmail.com>
Subject:   Re: calendar (1) - patch to correct error description
Message-ID:  <202010292348.09TNmXiX022948@fire.js.berklix.net>
In-Reply-To: Your message "Thu, 29 Oct 2020 08:07:02 -0400." <20201029120702.GA44939@night.db.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Here's another 2 calendar errors, presumably cpp, that manifest in 12.2-STABLE,
that 9.2-RELEASE gets right.

Man calendar:
	Empty lines and lines protected by the C commenting syntax
	(/* ...  */) are ignored.

--- Input ~/.calendar/calendar
friday	fish
/*
 * Oct 21	AAA
 */
friday	and chips
---12.2-STABLE output
Oct 30*	and chips
Oct 30 	AAA
Oct 30*	fish
Oct 31 	AAA
---9.2-RELEASE output
Oct 30*	and chips
Oct 30*	fish
---

Error 1:	Why does it emit AAA ?
Error 2:	Why twice ?
Puzzle: 	Doesnt happen if you change Oct above to Aug inside the comment.

(PS both do a nasty stack unstack, which may look familiar to us
programmers, but looks silly to normal peopler, inverting fish & chips)

Cheers,
-- 
Julian Stacey, Consultant Sys. Eng. BSD Linux Unix, http://berklix.com/jhs/cv/
Crash Brexit profits financial speculators in cabinet damaging Britain.
UK stole 3.7 million votes from Brits abroad 700 K in EU http://stolenvotes.uk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010292348.09TNmXiX022948>