From 785c70e764c3222f9accac2555246d3921a7263d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 3 Aug 2021 18:16:32 +0900 Subject: [PATCH] [DOC] mention how the command is passed to the shell [ci skip] --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: