home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.233 < prev    next >
Encoding:
Internet Message Format  |  2014-03-31  |  2.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.233
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.233
  11. Problem:    Escaping special characters for using "%" with a shell command is
  12.         inconsistant, parenthesis are escaped but spaces are not.
  13. Solution:   Only escape "!". (Gary Johnson)
  14. Files:        src/ex_docmd.c
  15.  
  16.  
  17. *** ../vim-7.4.232/src/ex_docmd.c    2014-04-01 17:49:40.140891378 +0200
  18. --- src/ex_docmd.c    2014-04-01 18:26:16.036861171 +0200
  19. ***************
  20. *** 4580,4604 ****
  21.   
  22.       /* For a shell command a '!' must be escaped. */
  23.       if ((eap->usefilter || eap->cmdidx == CMD_bang)
  24. !                 && vim_strpbrk(repl, (char_u *)"!&;()<>") != NULL)
  25.       {
  26.           char_u    *l;
  27.   
  28. !         l = vim_strsave_escaped(repl, (char_u *)"!&;()<>");
  29.           if (l != NULL)
  30.           {
  31.           vim_free(repl);
  32.           repl = l;
  33. -         /* For a sh-like shell escape "!" another time. */
  34. -         if (strstr((char *)p_sh, "sh") != NULL)
  35. -         {
  36. -             l = vim_strsave_escaped(repl, (char_u *)"!");
  37. -             if (l != NULL)
  38. -             {
  39. -             vim_free(repl);
  40. -             repl = l;
  41. -             }
  42. -         }
  43.           }
  44.       }
  45.   
  46. --- 4580,4594 ----
  47.   
  48.       /* For a shell command a '!' must be escaped. */
  49.       if ((eap->usefilter || eap->cmdidx == CMD_bang)
  50. !                 && vim_strpbrk(repl, (char_u *)"!") != NULL)
  51.       {
  52.           char_u    *l;
  53.   
  54. !         l = vim_strsave_escaped(repl, (char_u *)"!");
  55.           if (l != NULL)
  56.           {
  57.           vim_free(repl);
  58.           repl = l;
  59.           }
  60.       }
  61.   
  62. *** ../vim-7.4.232/src/version.c    2014-04-01 17:49:40.144891378 +0200
  63. --- src/version.c    2014-04-01 18:54:13.276838100 +0200
  64. ***************
  65. *** 736,737 ****
  66. --- 736,739 ----
  67.   {   /* Add new patch number below this line */
  68. + /**/
  69. +     233,
  70.   /**/
  71.  
  72. -- 
  73. hundred-and-one symptoms of being an internet addict:
  74. 17. You turn on your intercom when leaving the room so you can hear if new
  75.     e-mail arrives.
  76.  
  77.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  78. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  79. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  80.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  81.