1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix Process::exec documentation [ci skip]

The environment variable `RUBYSHELL` is used only on Windows, as
well as `COMSPEC`.
This commit is contained in:
Nobuyoshi Nakada 2021-07-30 19:20:09 +09:00
parent ff6c176028
commit 01d9e7f26c
Notes: git 2021-07-30 19:36:40 +09:00

View file

@ -3148,8 +3148,8 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _));
* shell expansion before being executed. * shell expansion before being executed.
* *
* The standard shell always means <code>"/bin/sh"</code> on Unix-like systems, * The standard shell always means <code>"/bin/sh"</code> on Unix-like systems,
* same as <code>ENV["RUBYSHELL"]</code> * otherwise, <code>ENV["RUBYSHELL"]</code> or <code>ENV["COMSPEC"]</code> on
* (or <code>ENV["COMSPEC"]</code> on Windows NT series), and similar. * Windows and similar.
* *
* If the string from the first form (<code>exec("command")</code>) follows * If the string from the first form (<code>exec("command")</code>) follows
* these simple rules: * these simple rules: