forked from aniani/vim
patch 8.2.3232: system() does not work without a second argument
Problem: system() does not work without a second argument. Solution: Do not require a second argument. (Yegappan Lakshmanan, closes #8651, closes #8650)
This commit is contained in:
committed by
Bram Moolenaar
parent
9088784972
commit
7e6a2a64f0
@@ -2359,7 +2359,7 @@ get_cmd_output_as_rettv(
|
||||
|
||||
if (in_vim9script()
|
||||
&& (check_for_string_arg(argvars, 0) == FAIL
|
||||
|| check_for_string_or_number_or_list_arg(argvars, 1) == FAIL))
|
||||
|| check_for_opt_string_or_number_or_list_arg(argvars, 1) == FAIL))
|
||||
return;
|
||||
|
||||
if (argvars[1].v_type != VAR_UNKNOWN)
|
||||
|
Reference in New Issue
Block a user