]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.233 v7.4.233
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2014 16:54:48 +0000 (18:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2014 16:54:48 +0000 (18:54 +0200)
Problem:    Escaping special characters for using "%" with a shell command is
            inconsistant, parenthesis are escaped but spaces are not.
Solution:   Only escape "!". (Gary Johnson)

src/ex_docmd.c
src/version.c

index f1aa60798d1de011ab0cb5c8602149f74e88ac24..b616740751ef6849a095e5f16b93337ddaed1a02 100644 (file)
@@ -4580,25 +4580,15 @@ expand_filename(eap, cmdlinep, errormsgp)
 
        /* For a shell command a '!' must be escaped. */
        if ((eap->usefilter || eap->cmdidx == CMD_bang)
-                           && vim_strpbrk(repl, (char_u *)"!&;()<>") != NULL)
+                           && vim_strpbrk(repl, (char_u *)"!") != NULL)
        {
            char_u      *l;
 
-           l = vim_strsave_escaped(repl, (char_u *)"!&;()<>");
+           l = vim_strsave_escaped(repl, (char_u *)"!");
            if (l != NULL)
            {
                vim_free(repl);
                repl = l;
-               /* For a sh-like shell escape "!" another time. */
-               if (strstr((char *)p_sh, "sh") != NULL)
-               {
-                   l = vim_strsave_escaped(repl, (char_u *)"!");
-                   if (l != NULL)
-                   {
-                       vim_free(repl);
-                       repl = l;
-                   }
-               }
            }
        }
 
index 1780946fc5d37d88fb63138c6b713451286f241f..0fcea78a3372c095104c444378a26f81e77e83db 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    233,
 /**/
     232,
 /**/