Date: Mon, 20 Oct 2003 14:55:12 -0400 From: Miklos Janosi <mjanosi@uakron.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/58293: vi replace with CR (ASCII 13) doesn't work Message-ID: <3F942F90.4C5A86D1@uakron.edu> Resent-Message-ID: <200310201900.h9KJ0VJK007790@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 20 12:00:30 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Miklos Janosi >Release: FreeBSD 4.7-RELEASE i386 >Organization: University of Akron >Environment: System: FreeBSD webteam3.cc.uakron.edu 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Wed Feb 26 09:29:28 EST 2003 mjanosi@webteam5.cc.uakron.edu:/usr/src/sys/compile/MIKI i386 >Description: The vi command :s/X/\^M/ behaves just like :s/X/^M/ >How-To-Repeat: Edit a file that contains just 1 char, an "X" with vi. Enter the following command :s/X/\^M/ and keep in mind ^M is the key combination of ctrl-v and <enter>. It should replace the "X" with a carriage return (ASCII 13), but it replaces it with a newline (ASCII 10). >Fix: >Release-Note: >Audit-Trail: >Unformatted: X-send-pr-version: 3.113 X-GNATS-Notify:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F942F90.4C5A86D1>