Monday, December 3, 2012

Re: Use and effect of shellquote and shellxquote

On Monday, December 3, 2012 7:44:27 PM UTC+1, Ben Fritz wrote:
> On Monday, December 3, 2012 11:49:35 AM UTC-6, esquifit wrote:
> > According to :he shq
> > Quoting character(s), put around the command passed to the shell,
> > for
> > the "!" and ":!" commands. The redirection is kept outside of the
> > quoting. See 'shellxquote' to include the redirection. It's
> > probably not useful to set both options.
> > What does this exactly means?
>
> The redirection referred to in the help is the automatic redirection added
> by Vim with 'shellredir' (and maybe 'shellpipe', I'm not sure), it has
> nothing to do with stuff you type in the command line. Your entire typed
> command goes inside the shellxquote or shellquote regardless of whether
> you type special characters.

Thanks for the swift reply. I've just read the help for shellredir and it
makes sense.
Now a related question. When should one use shellquote, when shellxquote?
Why not both? ("it's probably not useful" sounds somewhat vague)

--
You received this message from the "vim_use" 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

No comments: