Hi Bjoern, Bjoern Wibben wrote:
:g/test/s/^/#/g infinite substitution loop
Thanks for reporting this.GNU ed has always behaved like this for non-empty replacements of empty matches, but it could be more clever and notice that /^/ can only match once in a line and ignore the 'g' suffix.
I'll fix this as soon as possible. Best regards, Antonio. _______________________________________________ bug-ed mailing list bug-ed@gnu.org https://lists.gnu.org/mailman/listinfo/bug-ed