diff --git a/process.c b/process.c index cf4a5a5bb8..dc2dcf9560 100644 --- a/process.c +++ b/process.c @@ -3149,7 +3149,8 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _)); * * The standard shell always means "/bin/sh" on Unix-like systems, * otherwise, ENV["RUBYSHELL"] or ENV["COMSPEC"] on - * Windows and similar. + * Windows and similar. The command is passed as an argument to the + * "-c" switch to the shell, except in the case of +COMSPEC+. * * If the string from the first form (exec("command")) follows * these simple rules: