neovim/test/functional/eval
Jan Edmund Lazo 131aad953c win: defaults: 'shellcmdflag', 'shellxquote' #7343
closes #7698

Wrapping a command in double-quotes allows cmd.exe to safely dequote the
entire command as if the user entered the entire command in an
interactive prompt. This reduces the need to escape nested and uneven
double quotes.

The `/s` flag of cmd.exe makes the behaviour more reliable:

    :set shellcmdflag=/s\ /c

Before this patch, cmd.exe cannot use cygwin echo.exe (as opposed to
cmd.exe `echo` builtin) even if it is wrapped in double quotes.

Example:
:: internal echo
> cmd /s /c " echo foo\:bar" "
foo\:bar"

:: cygwin echo.exe
> cmd /s /c " "echo" foo\:bar" "
foo:bar
2018-03-24 22:05:53 +01:00
..
api_functions_spec.lua ui: refactor ui options 2018-02-13 20:48:51 +01:00
backtick_expansion_spec.lua win: enable backtick_expansion and shell output tests 2018-02-10 22:28:12 +01:00
buf_functions_spec.lua test: robust cleanup, unique filenames #7950 (#7950) 2018-02-01 03:12:37 +01: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: :! print binary data, control chars 2018-02-07 09:25:51 +01:00
fnamemodify_spec.lua test: use helpers.pathroot() to avoid a syscall 2018-01-29 00:05:35 -05:00
function_spec.lua functests: Move function_spec to eval 2017-06-20 18:17:47 +03:00
getline_spec.lua Merge #7860 'fix get_buffer_lines' 2018-01-16 08:21:25 +01:00
glob_spec.lua functests: Replace execute with either command or feed_command 2017-04-09 03:24:08 +03:00
has_spec.lua win: has("wsl") on Windows Subsystem for Linux #7330 2018-01-30 21:12:49 +01:00
hostname_spec.lua test/win: fix some environment assumptions #7912 2018-01-28 19:10:18 +01:00
input_spec.lua getcmdline_prompt: Temporarily disable msg_silent so prompt is displayed 2017-10-14 14:32:27 -04:00
interrupt_spec.lua *: Fix some problems found during review 2017-12-15 02:39:46 +03:00
json_functions_spec.lua eval/decode.c: Avoid NULL arg to memchr() #7332 2017-11-06 05:00:58 +01:00
let_spec.lua test/let_spec: self-referencing List. (#6228) 2017-03-08 03:23:40 +01:00
map_functions_spec.lua mbyte: Fix crash when using multibyte chars in maparg() return (#6986) 2017-07-09 10:40:46 +02:00
match_functions_spec.lua functests: Fix linter error 2017-12-16 16:14:53 +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 ui: refactor ui options 2018-02-13 20:48:51 +01:00
null_spec.lua eval: Fix add() 2017-12-11 10:34:58 +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 test: server_spec: Tolerate missing protocol (#7478) 2017-11-02 10:45:38 +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 compat: "v:count" distinct from "count" (#7407) 2017-11-09 02:20:12 +01: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: defaults: 'shellcmdflag', 'shellxquote' #7343 2018-03-24 22:05:53 +01: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