From 14be13783c00122f6ef3dc14d6725b8b3525b9eb Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Tue, 21 Jun 2022 11:45:38 -0400 Subject: [PATCH] Document file descriptors in `run` (#45710) (cherry picked from commit 1f99ee9783f11a474fccaf333ec90f4af05573cc) --- base/process.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/process.jl b/base/process.jl index 57c4e0ebd874a..016c495a76a8b 100644 --- a/base/process.jl +++ b/base/process.jl @@ -464,6 +464,9 @@ Run a command object, constructed with backticks (see the [Running External Prog section in the manual). Throws an error if anything goes wrong, including the process exiting with a non-zero status (when `wait` is true). +The `args...` allow you to pass through file descriptors to the command, and are ordered +like regular unix file descriptors (eg `stdin, stdout, stderr, FD(3), FD(4)...`). + If `wait` is false, the process runs asynchronously. You can later wait for it and check its exit status by calling `success` on the returned process object.