Xref: utzoo comp.bugs.4bsd:1460 comp.bugs.sys5:1191 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!usc!orion.oac.uci.edu!uci-ics!ucla-cs!twinsun!eggert From: eggert@twinsun.com (Paul Eggert) Newsgroups: comp.bugs.4bsd,comp.bugs.sys5 Subject: Re: s/A*./B/g editor bug? Message-ID: <42@looney.twinsun.com> Date: 26 Oct 89 21:18:44 GMT References: <1989Oct26.053423.17111@rpi.edu> Sender: news@twinsun.com Reply-To: eggert@twinsun.com (Paul Eggert) Followup-To: comp.bugs.4bsd Organization: Twin Sun, Inc Lines: 9 tale@pawl.rpi.edu (David C Lawrence) writes: GNU Emacs' (replace-regexp "b*a" "c"), which is equivalent to the original example, works correctly. Ah, but (replace-regexp "a*" "b") does not work correctly in GNU Emacs 18.55; it misses the empty string just before the end of the buffer. I found this bug (and posted a bug report) after reading dmr's explanation of the bug that was avoided in 'ed'.