I wrote:
> The source code available from Apple shows that they got this code from
> NetBSD originally
> /* $NetBSD: history.c,v 1.25 2003/10/18 23:48:42 christos Exp $ */
> so this may well be a pretty generic *BSD bug. Anyone clear on who to
> report it to? I have no idea if libedit is an independent project...
Some digging in the NetBSD CVS shows that they found both parts of this
bug more than two years ago:
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/history.c.diff?r1=1.25&r2=1.27&f=h
so the short and sweet answer is that Apple is behind the times.
regards, tom lane