Re: Escaping for system()

2014-01-30 Thread Ben Fritz
On Thursday, January 30, 2014 9:22:15 AM UTC-6, Andrew Stewart wrote: > Hello! > > I have a plugin which uses `system(command, input)` to run some external > commands. There seem to be a few escaping problems (mostly on Windows). > > So I did some research and wrote it all up here: > https://g

Re: Escaping for system()

2014-01-30 Thread tyru
2014/01/31 2:34 "tyru" : > > Hi. > > Passing arguments to programs on Windows is difficult at several points, > especially when you pass multiple arguments or *special character* at many many sides... > > Vim side: > on Windows, when 'shellslash' option is set, shellescape() returns a string wrappe

Re: Escaping for system()

2014-01-30 Thread tyru
Hi. Passing arguments to programs on Windows is difficult at several points, especially when you pass multiple arguments or *special character* at many many sides... Vim side: on Windows, when 'shellslash' option is set, shellescape() returns a string wrapped by single quotes which cmd.exe doesn'

Escaping for system()

2014-01-30 Thread Andrew Stewart
Hello! I have a plugin which uses `system(command, input)` to run some external commands. There seem to be a few escaping problems (mostly on Windows). So I did some research and wrote it all up here: https://github.com/airblade/vim-system-escape In a nutshell I'd like to write a VimL `shelle