From 9c613522bc028677f32f57597e0e38d2ace7b0e4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 4 Aug 2020 14:27:54 -0400 Subject: Prefer passing env table to `os.spawn()`. It will construct "KEY=VALUE" list. --- core/.os.luadoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/.os.luadoc b/core/.os.luadoc index 6c1b702b..c267f6d9 100644 --- a/core/.os.luadoc +++ b/core/.os.luadoc @@ -15,9 +15,8 @@ module('os') -- arguments to pass to it. `PATH` is searched for program names. -- @param cwd Optional current working directory (cwd) for the child -- process. When omitted, the parent's cwd is used. --- @param env Optional list of environment variables for the child process. --- Each element in the list is a 'KEY=VALUE' string. When omitted, the --- parent's environment is used. +-- @param env Optional table of environment variables for the child process. +-- When omitted, the parent's environment is used. -- @param stdout_cb Optional Lua function that accepts a string parameter for a -- block of standard output read from the child. Stdout is read asynchronously -- in 1KB or 0.5KB blocks (depending on the platform), or however much data is -- cgit v1.2.3