@@ -4972,24 +4972,16 @@ rb_f_system(int argc, VALUE *argv, VALUE _)
4972
4972
*
4973
4973
* Argument +exe_path+ is one of the following:
4974
4974
*
4975
- * - The string path to an executable to be called:
4975
+ * - The string path to an executable to be called.
4976
+ * - A 2-element array containing the path to an executable to be called,
4977
+ * and the string to be used as the name of the executing process.
4976
4978
*
4977
4979
* spawn('/usr/bin/date') # Path to date on Unix-style system.
4978
4980
* Process.wait
4979
4981
*
4980
4982
* Output:
4981
4983
*
4982
- * Thu Aug 31 10:06:48 AM CDT 2023
4983
- *
4984
- * - A 2-element array containing the path to an executable
4985
- * and the string to be used as the name of the executing process:
4986
- *
4987
- * pid = spawn(['sleep', 'Hello!'], '1') # 2-element array.
4988
- * p `ps -p #{pid} -o command=`
4989
- *
4990
- * Output:
4991
- *
4992
- * "Hello! 1\n"
4984
+ * Mon Aug 28 11:43:10 AM CDT 2023
4993
4985
*
4994
4986
* Ruby invokes the executable directly.
4995
4987
* This form does not use the shell;
@@ -8877,18 +8869,28 @@ proc_warmup(VALUE _)
8877
8869
*
8878
8870
* Argument +exe_path+ is one of the following:
8879
8871
*
8880
- * - The string path to an executable to be called.
8881
- * - A 2-element array containing the path to an executable to be called,
8882
- * and the string to be used as the name of the executing process.
8872
+ * - The string path to an executable to be called:
8883
8873
*
8884
- * Example:
8874
+ * Example:
8885
8875
*
8886
- * system('/usr/bin/date') # => true # Path to date on Unix-style system.
8887
- * system('foo') # => nil # Command failed.
8876
+ * system('/usr/bin/date') # => true # Path to date on Unix-style system.
8877
+ * system('foo') # => nil # Command execlution failed.
8888
8878
*
8889
- * Output:
8879
+ * Output:
8880
+ *
8881
+ * Thu Aug 31 10:06:48 AM CDT 2023
8882
+ *
8883
+ * - A 2-element array containing the path to an executable
8884
+ * and the string to be used as the name of the executing process:
8885
+ *
8886
+ * Example:
8887
+ *
8888
+ * pid = spawn(['sleep', 'Hello!'], '1') # 2-element array.
8889
+ * p `ps -p #{pid} -o command=`
8890
+ *
8891
+ * Output:
8890
8892
*
8891
- * Mon Aug 28 11:43:10 AM CDT 2023
8893
+ * "Hello! 1\n"
8892
8894
*
8893
8895
* === Execution Options
8894
8896
*
0 commit comments