Skip to content

process.spawn is now process.exec as of 0.9.0 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/api-reference/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ end
print("Running " .. process.os .. " on " .. process.arch .. "!")

-- Spawning a child process
local result = process.spawn("program", {
local result = process.exec("program", {
"cli argument",
"other cli argument"
})
Expand Down Expand Up @@ -137,7 +137,7 @@ process. Refer to the documentation for `SpawnOptions` for specific option keys

### SpawnOptions

A dictionary of options for `process.spawn`, with the following available values:
A dictionary of options for `process.exec`, with the following available values:

- `cwd` - The current working directory for the process
- `env` - Extra environment variables to give to the process
Expand All @@ -151,7 +151,7 @@ A dictionary of options for `process.spawn`, with the following available values

### SpawnResult

Result type for child processes in `process.spawn`.
Result type for child processes in `process.exec`.

This is a dictionary containing the following values:

Expand Down