Christian Brabandt wrote:

> Hi vim-dev!
> 
> On Do, 15 Okt 2009, Christian Brabandt wrote:
> 
> > :exe ':r! printf '.shellescape("10%%")
> 
> This should have been
> :exe ':r! printf '.shellescape("10%%", 1)
> 
> and returns
> 10/tmp/mutt-256bit-1004-14268-177
> 
> ie. it isn't escaping the second % sign appropriately.

Indeed.  Easier way to see this:

  :echo shellescape("10%%", 1)

-- 
       [Autumn changed into Winter ... Winter changed into Spring ...  Spring
       changed back into Autumn and Autumn gave Winter and Spring a miss and
       went straight on into Summer ...  Until one day ...]
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui