summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-03 18:16:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-03 18:16:32 +0900
commit785c70e764c3222f9accac2555246d3921a7263d (patch)
tree434530d8d2295439f06c926719c7cc4bea2b0655 /process.c
parentb5e94916bfb6aca65211047dcc4c55481c5b30a2 (diff)
[DOC] mention how the command is passed to the shell [ci skip]
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
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 <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: