Subject: PR/26046 CVS commit: [netbsd-3] src/usr.bin/vi/ex
To: None <aymeric@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@netbsd.org>
List: netbsd-bugs
Date: 09/09/2005 15:02:02
The following reply was made to PR bin/26046; it has been noted by GNATS.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/26046 CVS commit: [netbsd-3] src/usr.bin/vi/ex
Date: Fri, 9 Sep 2005 15:01:44 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Fri Sep 9 15:01:44 UTC 2005
Modified Files:
src/usr.bin/vi/ex [netbsd-3]: ex_argv.c
Log Message:
Pull up following revision(s) (requested by aymeric in ticket #753):
usr.bin/vi/ex/ex_argv.c: revision 1.14
In argv_exp3() where we cut a line into args, check for '\' as the escape
character instead of using the IS_ESCAPE() macro which tests for ^V because the
former is mandated by the standards, and the latter is insane.
This is a very small part in addressing PR bin/26046 by lukem@.
Before, in order to escape a special character, you had to use a literal ^V,
which is type ^V twice before the character; whereas now, you use \.
Because the fix will remain partial for a while, you have to remove \ from
your shellmeta option otherwise the \ is swallowed by the invoked shell that
handles arguments expansion.
Please complain if you want ^V^V to also work, but please don't call me a
heretic.
To generate a diff of this commit:
cvs rdiff -r1.12.2.1 -r1.12.2.2 src/usr.bin/vi/ex/ex_argv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.