File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -9025,21 +9025,31 @@ proc_warmup(VALUE _)
9025
9025
* === Execution Shell
9026
9026
*
9027
9027
* On a Unix-like system, the shell invoked is <tt>/bin/sh</tt>;
9028
- * otherwise the shell invoked is determined by environment variable
9029
- * <tt>ENV['RUBYSHELL']</tt>, if defined, or <tt>ENV['COMSPEC']</tt> otherwise.
9030
- *
9031
- * Except for the +COMSPEC+ case,
9032
9028
* the entire string +command_line+ is passed as an argument
9033
9029
* to {shell option -c}[https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/sh.html].
9034
9030
*
9035
9031
* The shell performs normal shell expansion on the command line:
9036
9032
*
9037
- * spawn('echo C*') # => 799139
9038
- * Process.wait # => 799139
9033
+ * Example:
9034
+ *
9035
+ * system('echo $SHELL: C*') # => true
9036
+ *
9037
+ * Output:
9038
+ *
9039
+ * /bin/bash: CONTRIBUTING.md COPYING COPYING.ja
9040
+ *
9041
+ * On Windows, the shell invoked is determined by environment variable
9042
+ * +RUBYSHELL+, if defined, or +COMSPEC+ otherwise. The standard
9043
+ * shell +cmd.exe+ performs environment variable expansion but does
9044
+ * not have globbing functionality:
9045
+ *
9046
+ * Example:
9047
+ *
9048
+ * system("echo %COMSPEC%: C*")' # => true
9039
9049
*
9040
9050
* Output:
9041
9051
*
9042
- * CONTRIBUTING.md COPYING COPYING.ja
9052
+ * C:\WINDOWS\system32\cmd.exe: C*
9043
9053
*
9044
9054
* == What's Here
9045
9055
*
You can’t perform that action at this time.
0 commit comments