ZyX wrote:

> This is modifier for those who are bothered using `execute '!cmd'
> shellescape(@%, 1)`, but cannot use `!cmd %` because they do not know
> what `%` will expand to: it replaces the first variant with `!cmd
> %:S`.
> 
> I remember myself requesting this kind of functionality a while ago.
> 
> Note: how about making new do_newline argument be the same as do_special? 
> Currently if I do
> 
>     echo system('echo '.shellescape("abc  def\necho ghi"))
> 
> I get correct results only if my shell is tcsh, but if my shell is zsh I get
> 
>     abc  def\
>     echo ghi
> 
> which is not correct (`\`) must not be there. This should fix
> “newlines in {expr} may cause the command to fail” from system()
> documentation as as far as I see it is shellescape() problem and not
> system().
[...]

> +     :S      Escape special characters (see |shellescape()|). Must be the 
> +             last one.

Is this sufficient to explain what this does exactly?

Perhaps a few more references are needed in the help, it's not easy to
guess that escaping can be done this way.

-- 
hundred-and-one symptoms of being an internet addict:
25. You believe nothing looks sexier than a man in boxer shorts illuminated
    only by a 17" inch svga monitor.

 /// 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.

Raspunde prin e-mail lui