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)
diff --git a/src/typval.c b/src/typval.c
index 3403217..fb527e9 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -727,6 +727,17 @@
}
/*
+ * Give an error and return FAIL unless "args[idx]" is an optional string
+ * or number or a list
+ */
+ int
+check_for_opt_string_or_number_or_list_arg(typval_T *args, int idx)
+{
+ return (args[idx].v_type == VAR_UNKNOWN
+ || check_for_string_or_number_or_list_arg(args, idx) != FAIL);
+}
+
+/*
* Give an error and return FAIL unless "args[idx]" is a string or a list
* or a dict.
*/