Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.bin/vi/ex Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/68f2895ecc68
branches:  netbsd-3
changeset: 577350:68f2895ecc68
user:      riz <riz%NetBSD.org@localhost>
date:      Sat Oct 15 15:41:12 2005 +0000

description:
Pull up following revision(s) (requested by aymeric in ticket #878):
        usr.bin/vi/ex/ex.c: revision 1.16
remove the hack that changed backslaches to ^V's when the command is
"set" (!).
Now backslashes are understood by argv_exp3().

diffstat:

 usr.bin/vi/ex/ex.c |  18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diffs (39 lines):

diff -r 3bbbb27474de -r 68f2895ecc68 usr.bin/vi/ex/ex.c
--- a/usr.bin/vi/ex/ex.c        Sat Oct 15 15:34:08 2005 +0000
+++ b/usr.bin/vi/ex/ex.c        Sat Oct 15 15:41:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex.c,v 1.14 2005/02/12 12:53:22 aymeric Exp $  */
+/*     $NetBSD: ex.c,v 1.14.2.1 2005/10/15 15:41:12 riz Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -16,7 +16,7 @@
 #if 0
 static const char sccsid[] = "@(#)ex.c 10.57 (Berkeley) 10/10/96";
 #else
-__RCSID("$NetBSD: ex.c,v 1.14 2005/02/12 12:53:22 aymeric Exp $");
+__RCSID("$NetBSD: ex.c,v 1.14.2.1 2005/10/15 15:41:12 riz Exp $");
 #endif
 #endif /* not lint */
 
@@ -813,20 +813,6 @@
        ecp->clen = ((ecp->save_cmd - ecp->cp) - 1) - discard;
 
        /*
-        * QUOTING NOTE:
-        *
-        * The "set tags" command historically used a backslash, not the
-        * user's literal next character, to escape whitespace.  Handle
-        * it here instead of complicating the argv_exp3() code.  Note,
-        * this isn't a particularly complex trap, and if backslashes were
-        * legal in set commands, this would have to be much more complicated.
-        */
-       if (ecp->cmd == &cmds[C_SET])
-               for (p = ecp->cp, len = ecp->clen; len > 0; --len, ++p)
-                       if (*p == '\\')
-                               *p = CH_LITERAL;
-
-       /*
         * Set the default addresses.  It's an error to specify an address for
         * a command that doesn't take them.  If two addresses are specified
         * for a command that only takes one, lose the first one.  Two special



Home | Main Index | Thread Index | Old Index