🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #133

Re: s/A*./B/g editor bug?

#133
From: Paul Eggert
Date: Thu, 26 Oct 1989 21:18
9 lines
921 bytes
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'.
Technical Details
Message-ID: <42@looney.twinsun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!usc!orion.oac.uci.edu!uci-ics!ucla-cs!twinsun!eggert
References: <1989Oct26.053423.17111@rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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