ruby-changes:67028
From: Nobuyoshi <ko1@a...>
Date: Tue, 3 Aug 2021 18:19:11 +0900 (JST)
Subject: [ruby-changes:67028] 785c70e764 (master): [DOC] mention how the command is passed to the shell [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=785c70e764 From 785c70e764c3222f9accac2555246d3921a7263d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 3 Aug 2021 18:16:32 +0900 Subject: [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 cf4a5a5..dc2dcf9 100644 --- a/process.c +++ b/process.c @@ -3149,7 +3149,8 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _)); https://github.com/ruby/ruby/blob/trunk/process.c#L3149 * * The standard shell always means <code>"/bin/sh"</code> on Unix-like systems, * otherwise, <code>ENV["RUBYSHELL"]</code> or <code>ENV["COMSPEC"]</code> on - * Windows and similar. + * Windows and similar. The command is passed as an argument to the + * <code>"-c"</code> switch to the shell, except in the case of +COMSPEC+. * * If the string from the first form (<code>exec("command")</code>) follows * these simple rules: -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/