🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #125

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

#125
From: Doug Gwyn
Date: Wed, 18 Oct 1989 13:55
10 lines
943 bytes
In article <3522@aplcen.apl.jhu.edu> bink@aplcen.apl.jhu.edu (9704) writes:
-I've noticed the ED s///g command works incorrectly when given the command
-	s/b*a/c/g
-on the input line
-	aaaaaaaaaaaaaaaaaaaaa
-Is this a confirmed bug in the RE matcher or the substitute code, and has
-it been resolved?  This sounds trivial, but it did cause real problems.

I believe it's a real bug.  The corresponding "sam" x/b*a/c/c/ works as
you expected the "ed" command to work.
Technical Details
Message-ID: <11329@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
References: <3522@aplcen.apl.jhu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.bugs.sys5
Subject: Re: s/A*./B/g editor bug?
Message-ID: <11329@smoke.BRL.MIL>
Date: 18 Oct 89 13:55:42 GMT
References: <3522@aplcen.apl.jhu.edu>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 10