summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-30 19:20:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-30 19:36:17 +0900
commit01d9e7f26cc58dd280f0a08f0d12b7e7b7424147 (patch)
treeb946e1c25ccca6e80401d3df98a4a5ba8acc5b17 /process.c
parentff6c17602841bff57d3a489b8119c9643dbc7ebe (diff)
[DOC] Fix Process::exec documentation [ci skip]
The environment variable `RUBYSHELL` is used only on Windows, as well as `COMSPEC`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4694
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index fa8c69dc65..7f91b8cce0 100644
--- a/process.c
+++ b/process.c
@@ -3148,8 +3148,8 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _));
* shell expansion before being executed.
*
* The standard shell always means <code>"/bin/sh"</code> on Unix-like systems,
- * same as <code>ENV["RUBYSHELL"]</code>
- * (or <code>ENV["COMSPEC"]</code> on Windows NT series), and similar.
+ * otherwise, <code>ENV["RUBYSHELL"]</code> or <code>ENV["COMSPEC"]</code> on
+ * Windows and similar.
*
* If the string from the first form (<code>exec("command")</code>) follows
* these simple rules: