neovim/test/functional/eval
Rui Abreu Ferreira d31d177a0c win: default shellxescape, shellxquote to empty
Calling cmd.exe in Windows follows a very different pattern from Vim.
The primary difference is that Vim does a nested call to cmd.exe, e.g.
the following call in Vim

    system('echo a 2>&1')

spawns the following processes

    "C:\Program Files (x86)\Vim\vim80\vimrun" -s C:\Windows\system32\cmd.exe /c (echo a 2^>^&1
        ^>C:\Users\dummy\AppData\Local\Temp\VIoC169.tmp 2^>^&1)
    C:\Windows\system32\cmd.exe /c C:\Windows\system32\cmd.exe /c (echo a 2^>^&1
        ^>C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2^>^&1)
    C:\Windows\system32\cmd.exe  /c (echo a 2>&1
        >C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2>&1)

The escaping with ^ is needed because cmd.exe calls itself and needs to
preserve the special metacharacters for the last call. However in nvim
no nested call is made, system('') spawns a single cmd.exe process.
Setting shellxescape to "" disables escaping with ^.

The previous default for shellxquote=( wrapped any command in
parenthesis, in Vim this is more meaningful due to the use of tempfiles
to store the output and redirection (also see &shellquote). There is
a slight benefit in having the default be empty because some expressions
that run in console will not run within parens e.g. due to unbalanced
double quotes

    system('echo "a b')
2017-04-12 02:10:34 +02:00
..
api_functions_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
backtick_expansion_spec.lua test: backtick expansion #6218 2017-03-06 12:40:22 +01:00
buf_functions_spec.lua functests: Fix buf_functions test on Windows 2017-03-29 10:08:44 +03:00
changedtick_spec.lua *: Fix linter errors 2017-02-23 19:48:41 +03:00
container_functions_spec.lua eval/typval,tests: Fix extending list with itself, add tests 2017-03-29 10:08:06 +03:00
executable_spec.lua test: executable(): AppVeyor: Ignore "sibling" failure 2017-02-04 11:07:50 +01:00
execute_spec.lua test: execute() + :redir 2017-02-01 18:31:53 -05:00
glob_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
has_spec.lua eval.c: has("unnamedplus"). (#6136) 2017-02-18 14:04:46 +01:00
hostname_spec.lua win: os_get_hostname() #5416 (#6413) 2017-04-07 19:46:33 +02:00
input_spec.lua eval: Move remaining get_tv_string* functions to eval/typval.c 2017-03-29 10:08:05 +03:00
json_functions_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
let_spec.lua test/let_spec: self-referencing List. (#6228) 2017-03-08 03:23:40 +01:00
match_functions_spec.lua eval: Move remaining get_tv_string* functions to eval/typval.c 2017-03-29 10:08:05 +03:00
minmax_functions_spec.lua eval: Fix max_min functions 2017-03-29 10:08:06 +03:00
modeline_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
msgpack_functions_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
null_spec.lua eval: Fix extend() behaviour with NULL lists and dictionaries 2017-03-29 10:08:45 +03:00
operators_spec.lua functests: Check logs in lua code 2016-06-10 21:50:49 +03:00
printf_spec.lua eval: Add id() function and make printf("%p") return something useful (#6095) 2017-02-11 19:47:02 +01:00
reltime_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
server_spec.lua Windows: enable more tests 2017-01-13 01:17:12 +01:00
setpos_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
sort_spec.lua eval: Move get_tv_lnum and get_tv_float to eval/typval.h 2017-03-29 10:08:05 +03:00
special_vars_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
string_spec.lua *: Move some dictionary functions to typval.h and use char* 2017-03-29 10:07:42 +03:00
system_spec.lua win: default shellxescape, shellxquote to empty 2017-04-12 02:10:34 +02:00
timer_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
vvar_event_spec.lua functests: Check logs in lua code 2016-06-10 21:50:49 +03:00
writefile_spec.lua eval: Add s flag, use p_fs by default, error out on unknown flag 2017-04-03 02:11:27 +03:00