Hi there, I found a different behavior between ed and oed.
Have a look at the output below: oed (https://github.com/ibara/oed): ~$ oed :a this is a test tester . :g/test/s/^/#/g :,n 1 this 2 is 3 a 4 #test 5 #tester :Q GNU ed 1.14.2 and 1.15: ~$ ged :a this is a test tester . :g/test/s/^/#/g ? :H infinite substitution loop :Q As you can see oed is doing the substitution while GNU ed is not. GNU ed will do the substitution if you skip the last g. Best regards, Bjoern --- Bjoern M. Wibben Taunusstr. 112 - 61440 Oberursel - Phone: 0.61.71/208.173.8 http://www.wibben.de/ mailto:h...@wibben.de GPG-Fingerprint: EF66 E41D A051 A370 9757 CD24 EE3D 85DF 2E24 3867 _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed