@@ -3090,21 +3090,7 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _));
3090
3090
*
3091
3091
* Foo
3092
3092
*
3093
- * On a Unix-like system, the shell is <tt>/bin/sh</tt>;
3094
- * otherwise the shell is determined by environment variable
3095
- * <tt>ENV['RUBYSHELL']</tt>, if defined, or <tt>ENV['COMSPEC']</tt> otherwise.
3096
- *
3097
- * Except for the +COMSPEC+ case,
3098
- * the entire string +command_line+ is passed as an argument
3099
- * to {shell option -c}[https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/sh.html].
3100
- *
3101
- * The shell performs normal shell expansion on the command line:
3102
- *
3103
- * exec('echo C*')
3104
- *
3105
- * Output:
3106
- *
3107
- * CONTRIBUTING.md COPYING COPYING.ja
3093
+ * See {Execution Shell}[rdoc-ref:Process@Shell] for details about the shell.
3108
3094
*
3109
3095
* Raises an exception if the new process could not execute.
3110
3096
*
@@ -4785,21 +4771,7 @@ rb_spawn(int argc, const VALUE *argv)
4785
4771
*
4786
4772
* Foo
4787
4773
*
4788
- * On a Unix-like system, the shell is <tt>/bin/sh</tt>;
4789
- * otherwise the shell is determined by environment variable
4790
- * <tt>ENV['RUBYSHELL']</tt>, if defined, or <tt>ENV['COMSPEC']</tt> otherwise.
4791
- *
4792
- * Except for the +COMSPEC+ case,
4793
- * the entire string +command_line+ is passed as an argument
4794
- * to {shell option -c}[https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/sh.html].
4795
- *
4796
- * The shell performs normal shell expansion on the command line:
4797
- *
4798
- * system('echo C*') # => true
4799
- *
4800
- * Output:
4801
- *
4802
- * CONTRIBUTING.md COPYING COPYING.ja
4774
+ * See {Execution Shell}[rdoc-ref:Process@Shell] for details about the shell.
4803
4775
*
4804
4776
* Raises an exception if the new process could not execute.
4805
4777
*
@@ -4972,22 +4944,7 @@ rb_f_system(int argc, VALUE *argv, VALUE _)
4972
4944
*
4973
4945
* Foo
4974
4946
*
4975
- * On a Unix-like system, the shell is <tt>/bin/sh</tt>;
4976
- * otherwise the shell is determined by environment variable
4977
- * <tt>ENV['RUBYSHELL']</tt>, if defined, or <tt>ENV['COMSPEC']</tt> otherwise.
4978
- *
4979
- * Except for the +COMSPEC+ case,
4980
- * the entire string +command_line+ is passed as an argument
4981
- * to {shell option -c}[https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/sh.html].
4982
- *
4983
- * The shell performs normal shell expansion on the command line:
4984
- *
4985
- * spawn('echo C*') # => 799139
4986
- * Process.wait # => 799139
4987
- *
4988
- * Output:
4989
- *
4990
- * CONTRIBUTING.md COPYING COPYING.ja
4947
+ * See {Execution Shell}[rdoc-ref:Process@Shell] for details about the shell.
4991
4948
*
4992
4949
* Raises an exception if the new process could not execute.
4993
4950
*
@@ -8973,6 +8930,25 @@ proc_warmup(VALUE _)
8973
8930
* Use execution option <tt>:close_others => true</tt> to modify that inheritance
8974
8931
* by closing non-standard fds (3 and greater) that are not otherwise redirected.
8975
8932
*
8933
+ * === Execution Shell
8934
+ *
8935
+ * On a Unix-like system, the shell invoked is <tt>/bin/sh</tt>;
8936
+ * otherwise the shell invoked is determined by environment variable
8937
+ * <tt>ENV['RUBYSHELL']</tt>, if defined, or <tt>ENV['COMSPEC']</tt> otherwise.
8938
+ *
8939
+ * Except for the +COMSPEC+ case,
8940
+ * the entire string +command_line+ is passed as an argument
8941
+ * to {shell option -c}[https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/sh.html].
8942
+ *
8943
+ * The shell performs normal shell expansion on the command line:
8944
+ *
8945
+ * spawn('echo C*') # => 799139
8946
+ * Process.wait # => 799139
8947
+ *
8948
+ * Output:
8949
+ *
8950
+ * CONTRIBUTING.md COPYING COPYING.ja
8951
+ *
8976
8952
* == What's Here
8977
8953
*
8978
8954
* === Current-Process Getters
0 commit comments