diff options
author | 2014-09-17 12:53:40 -0400 | |
---|---|---|
committer | 2014-09-17 12:53:40 -0400 | |
commit | c44b084d2c15bf73a610c371998a8c791d298a0f (patch) | |
tree | b74c4b573f0e5086a45fe7c06bf4b4bf90f7b5b9 /core/init.lua | |
parent | c19cb9243d4e2ee4dfdb425d323922aacb8c603e (diff) |
More LuaDoc updates.
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/init.lua b/core/init.lua index 50289ce0..223aee4b 100644 --- a/core/init.lua +++ b/core/init.lua @@ -18,9 +18,9 @@ _M = {} -- language modules table if jit then module, package.searchers, bit32 = nil, package.loaders, bit end -- pdcurses compatibility. if CURSES and WIN32 then - function spawn(argv, working_dir, stdout_cb, stderr_cb, exit_cb) + function spawn(argv, cwd, stdout_cb, stderr_cb, exit_cb) local current_dir = lfs.currentdir() - if working_dir then lfs.chdir(working_dir) end + if cwd then lfs.chdir(cwd) end local p = io.popen(argv..' 2>&1') if stdout_cb then stdout_cb(p:read('*a')) end if exit_cb then exit_cb(select(3, p:close())) else p:close() end @@ -144,7 +144,7 @@ local timeout -- thread. -- @param argv A command line string containing the program's name followed by -- arguments to pass to it. `PATH` is searched for program names. --- @param working_dir Optional current working directory (cwd) for the child +-- @param cwd Optional current working directory (cwd) for the child -- process. The default value is `nil`, which inherits the parent's cwd. -- @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 |