On Mar 31, 9:58 am, Charles Campbell <[email protected]>
wrote:
> Edward Beach wrote:
> > Thanks for the reply, Chip.
>
> > * I can execute :!dir and even :!wget and :execute "silent r!wget" but
> > I fail at executing :execute silent r!dir
>
> > * Version dump:
> > VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug  9 2008 18:46:22)
>
> [snip]
>
> OK, 7.2 is good (although there've been 148 patches since it came out).  
> I was mostly
> interested if you're using a vim with shellescape().  Presumably a
>   :echo  exists("*shellescape")
> should show "1" (ie. that it does support shellescape()).
>
> So, what does
>    :echo shellescape("abc")
> show?> * I'm using the distribution's version, marked as v31.  But I replaced
> > that version with 32b and I still have the same problems.
>
> > * From the dos cmd window, I can execute the command...but I need to
> > switch the single quotes(') wrapping the file paths with double quotes
> > (").
>
> What does
>    :echo shellescape("abc")
> show?   I suspect you'll see
>   'abc'
> rather than
>   "abc"
>
> If so, more questions: what do
>   :echo &shell
> and
>   :echo &shq
> show?  Does
>   :set shq='"'
> fix the problem?
>
> Regards,
> Chip Campbell

Thanks for the reply Chip,

You're right.  My problem is that I have shellslash enabled on a win32
build. Unfortunately setting the shellquote to " doesn't seem to
help.  Shellescape ignores the " and uses the ' regardless; it's only
when I disable shellslash that shellescape uses ".  So am I misusing
the shellslash setting?

As an aside...
:set shq='"' results in shellquote='
:set shq=\" resullts in shellquote="

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

Reply via email to