mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
process.c: [DOC] fix markups [ci skip]
* process.c (rb_f_spawn): fix markups as rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b9ad698c87
commit
fcf60d3977
1 changed files with 8 additions and 7 deletions
15
process.c
15
process.c
|
@ -4594,13 +4594,14 @@ rb_f_system(int argc, VALUE *argv)
|
|||
* current directory:
|
||||
* :chdir => str
|
||||
*
|
||||
* The 'cmdname, arg1, ...' form does not use the shell. However,
|
||||
* on different OSes, different things are provided as built-in
|
||||
* commands. An example of this is 'echo', which is a built-in
|
||||
* on Windows, but is a normal program on Linux and Mac OS X.
|
||||
* This means that `Process.spawn 'echo', '%Path%'` will display
|
||||
* the contents of the `%Path%` environment variable on Windows,
|
||||
* but `Process.spawn 'echo', '$PATH'` prints the literal '$PATH'.
|
||||
* The <code>'cmdname, arg1, ...'</code> form does not use the shell.
|
||||
* However, on different OSes, different things are provided as
|
||||
* built-in commands. An example of this is +'echo'+, which is a
|
||||
* built-in on Windows, but is a normal program on Linux and Mac OS X.
|
||||
* This means that <code>Process.spawn 'echo', '%Path%'</code> will
|
||||
* display the contents of the <tt>%Path%</tt> environment variable
|
||||
* on Windows, but <code>Process.spawn 'echo', '$PATH'</code> prints
|
||||
* the literal <tt>$PATH</tt>.
|
||||
*
|
||||
* If a hash is given as +env+, the environment is
|
||||
* updated by +env+ before <code>exec(2)</code> in the child process.
|
||||
|
|
Loading…
Add table
Reference in a new issue