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

Perry Hutchison perry at ccssrv.UUCP
Thu Oct 19 08:42:52 AEST 1989


In article <3522 at aplcen.apl.jhu.edu> bink at 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
+ -- the result is:
+ 	cacacacacacacacacacac
+ and it should be:
+ 	ccccccccccccccccccccc

< documentation citation, according to which this is a bug, deleted >

+ Both VI and ED behave this way, on at least System V.2 and Ultrix-32 V3.1.

Both also behave this way on SunOS 3.5, which is a 4.2 BSD derivative.
Anyone care to try it out on a 2bsd or a V7 system?



More information about the Comp.bugs.4bsd.ucb-fixes mailing list