s/A*./B/g editor bug?
Paul Eggert
eggert at twinsun.com
Fri Oct 27 07:18:44 AEST 1989
tale at pawl.rpi.edu (David C Lawrence) writes:
GNU Emacs' (replace-regexp "b*a" "c"), which is equivalent to the
original example, works correctly.
Ah, but (replace-regexp "a*" "b") does not work correctly in GNU Emacs 18.55;
it misses the empty string just before the end of the buffer. I found this bug
(and posted a bug report) after reading dmr's explanation of the bug that was
avoided in 'ed'.
More information about the Comp.bugs.sys5
mailing list