Patch 7.4b.005
Problem: Finding %s in shellpipe and shellredir does not ignore %%s.
Solution: Skip over %%. (lcd 47)
Files: src/ex_cmds.c
*** ../vim-7.4b.004/src/ex_cmds.c 2013-07-28 13:34:50.000000000 +0200
--- src/ex_cmds.c 2013-08-02 14:03:00.000000000 +0200
***************
*** 1622,1631 ****
char_u *end;
end = buf + STRLEN(buf);
! /* find "%s", skipping "%%" */
for (p = opt; (p = vim_strchr(p, '%')) != NULL; ++p)
! if (p[1] == 's')
break;
if (p != NULL)
{
*end = ' '; /* not really needed? Not with sh, ksh or bash */
--- 1622,1635 ----
char_u *end;
end = buf + STRLEN(buf);
! /* find "%s" */
for (p = opt; (p = vim_strchr(p, '%')) != NULL; ++p)
! {
! if (p[1] == 's') /* found %s */
break;
+ if (p[1] == '%') /* skip %% */
+ ++p;
+ }
if (p != NULL)
{
*end = ' '; /* not really needed? Not with sh, ksh or bash */
*** ../vim-7.4b.004/src/version.c 2013-08-01 18:38:23.000000000 +0200
--- src/version.c 2013-08-02 14:04:43.000000000 +0200
***************
*** 729,730 ****
--- 729,732 ----
{ /* Add new patch number below this line */
+ /**/
+ 5,
/**/
--
Change is inevitable, except from a vending machine.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.