[Bug 202740] vi/ex string substitution problem when there is multiple occurrences in a line

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 29 09:50:34 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202740

            Bug ID: 202740
           Summary: vi/ex string substitution problem when there is
                    multiple occurrences in a line
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: fnoyanisi at yahoo.com

Created attachment 160478
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160478&action=edit
ex string substutition bug demonstration

ex/vi implementations in 10.2-RELEASE, and 11.0-CURRENT have issues with string
substitution when the phrase that would be replaced with a new one appears in a
single line more than once.

This phenomena is visible when ex(1) is invoked with -s and -c options.
Attached text file includes step by step demonstration of the problem. The last
command in the attached file always fails.

Problem is most probably visible in older versions of FreeBSD as well, I have
only tested on these two systems.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list