Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!liuida!mikpe From: mikpe@majestix.ida.liu.se (Mikael Pettersson) Newsgroups: comp.bugs.4bsd Subject: Re: s/A*./B/g editor bug? Message-ID: <1389@majestix.ida.liu.se> Date: 20 Oct 89 00:38:46 GMT References: <3522@aplcen.apl.jhu.edu> <741@ccssrv.UUCP> Organization: CIS Dept, Univ of Linkoping, Sweden Lines: 12 In article <741@ccssrv.UUCP> perry@ccssrv.UUCP (Perry Hutchison) writes: >In article <3522@aplcen.apl.jhu.edu> bink@aplcen.apl.jhu.edu (9704) writes: [describes a bug in ed: s/b*a/c/g maps `aaaa' to `caca' instead of `cccc'] >Anyone care to try it out on a 2bsd or a V7 system? On our pdp11 (2.10bsd), ed produces the incorrect result (caca) while sed does the right thing (cccc). -- Mikael Pettersson, Dept of Comp & Info Sci, University of Linkoping, Sweden email: mpe@ida.liu.se or ..!{mcvax,munnari,uunet}!enea!liuida!mpe