Subject: PR/26046 CVS commit: src/usr.bin/vi/ex
To: None <aymeric@netbsd.org, gnats-admin@netbsd.org,>
From: Aymeric Vincent <aymeric@netbsd.org>
List: netbsd-bugs
Date: 09/06/2005 21:51:02
The following reply was made to PR bin/26046; it has been noted by GNATS.
From: Aymeric Vincent <aymeric@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/26046 CVS commit: src/usr.bin/vi/ex
Date: Tue, 6 Sep 2005 21:50:52 +0000 (UTC)
Module Name: src
Committed By: aymeric
Date: Tue Sep 6 21:50:52 UTC 2005
Modified Files:
src/usr.bin/vi/ex: ex_argv.c
Log Message:
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.13 -r1.14 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.