[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
Родитель ff6c176028
Коммит 01d9e7f26c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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: