diff options
author | 2020-08-04 14:27:54 -0400 | |
---|---|---|
committer | 2020-08-04 14:27:54 -0400 | |
commit | 9c613522bc028677f32f57597e0e38d2ace7b0e4 (patch) | |
tree | 8dcad413acdd714dcbf7326aefb2d0e56fba4490 /core/.os.luadoc | |
parent | 0c20e9b24b939ba0abf0a566c6636d05f9a2a250 (diff) |
Prefer passing env table to `os.spawn()`.
It will construct "KEY=VALUE" list.
Diffstat (limited to 'core/.os.luadoc')
-rw-r--r-- | core/.os.luadoc | 5 |
1 files changed, 2 insertions, 3 deletions
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 |