bin/58293: vi replace with CR (ASCII 13) doesn't work

Miklos Janosi mjanosi at
Mon Oct 20 12:00:33 PDT 2003

>Number:         58293
>Category:       bin
>Synopsis:       vi replace with CR (ASCII 13) doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 20 12:00:30 PDT 2003
>Originator:     Miklos Janosi
>Release:        FreeBSD 4.7-RELEASE i386
University of Akron
System: FreeBSD 4.7-RELEASE FreeBSD 4.7-RELEASE
#1: Wed Feb 26 09:29:28 EST 2003
mjanosi at i386

The vi command :s/X/\^M/ behaves just like :s/X/^M/
Edit a file that contains just 1 char, an "X" with vi. Enter the
command :s/X/\^M/ and keep in mind ^M is the key combination of ctrl-v
<enter>. It should replace the "X" with a carriage return (ASCII 13),
it replaces it with a newline (ASCII 10).
 X-send-pr-version: 3.113

More information about the freebsd-bugs mailing list