1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] mention how the command is passed to the shell [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-08-03 18:16:32 +09:00
parent b5e94916bf
commit 785c70e764
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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: