From 01d9e7f26cc58dd280f0a08f0d12b7e7b7424147 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 30 Jul 2021 19:20:09 +0900 Subject: [PATCH] [DOC] Fix Process::exec documentation [ci skip] The environment variable `RUBYSHELL` is used only on Windows, as well as `COMSPEC`. --- process.c | 4 ++-- 1 file 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 "/bin/sh" on Unix-like systems, - * same as ENV["RUBYSHELL"] - * (or ENV["COMSPEC"] on Windows NT series), and similar. + * otherwise, ENV["RUBYSHELL"] or ENV["COMSPEC"] on + * Windows and similar. * * If the string from the first form (exec("command")) follows * these simple rules: