diff src/misc1.c @ 25390:a6c347a0c6e3 v8.2.3232

patch 8.2.3232: system() does not work without a second argument Commit: https://github.com/vim/vim/commit/7e6a2a64f09df577f29e024c1d1e6733d6bc1b7c Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jul 28 11:51:48 2021 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Jul 2021 12:00:06 +0200
parents e8e2c4d33b9b
children 4101d78f78e2
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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)