File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -8876,6 +8876,11 @@ proc_warmup(VALUE _)
8876
8876
*
8877
8877
* Thu Aug 31 10:06:48 AM CDT 2023
8878
8878
*
8879
+ * A path or command name containing spaces without arguments cannot
8880
+ * be distinguished from +command_line+ above, so you must quote or
8881
+ * escape the entire command name using a shell in platform
8882
+ * dependent manner, or use the array form below.
8883
+ *
8879
8884
* - A 2-element array containing the path to an executable
8880
8885
* and the string to be used as the name of the executing process:
8881
8886
*
@@ -8922,6 +8927,15 @@ proc_warmup(VALUE _)
8922
8927
* Windows, but <code>Process.spawn 'echo', '$PATH'</code> prints the
8923
8928
* literal <tt>$PATH</tt>.
8924
8929
*
8930
+ * If you want to invoke a path containing spaces with no arguments
8931
+ * without shell, you will need to use a 2-element array +exe_path+.
8932
+ *
8933
+ * Example:
8934
+ *
8935
+ * path = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
8936
+ * spawn(path) # Raises Errno::ENOENT; No such file or directory - /Applications/Google
8937
+ * spawn([path] * 2)
8938
+ *
8925
8939
* === Execution Options
8926
8940
*
8927
8941
* Optional trailing argument +options+ is a hash of execution options.
You can’t perform that action at this time.
0 commit comments