calendar (1) - patch to correct error description

Julian H. Stacey jhs at berklix.com
Thu Oct 29 23:49:11 UTC 2020


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


More information about the freebsd-stable mailing list