[前][次][番号順一覧][スレッド一覧]

ruby-changes:8986

From: akr <ko1@a...>
Date: Fri, 5 Dec 2008 00:21:54 +0900 (JST)
Subject: [ruby-changes:8986] Ruby:r20522 (trunk): rdoc update.

akr	2008-12-05 00:21:32 +0900 (Fri, 05 Dec 2008)

  New Revision: 20522

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20522

  Log:
    rdoc update.

  Modified files:
    trunk/io.c
    trunk/process.c

Index: io.c
===================================================================
--- io.c	(revision 20521)
+++ io.c	(revision 20522)
@@ -4684,14 +4684,27 @@
  *
  *  Runs the specified command as a subprocess; the subprocess's
  *  standard input and output will be connected to the returned
- *  <code>IO</code> object.  If _cmd_ is a +String+
- *  ``<code>-</code>'', then a new instance of Ruby is started as the
- *  subprocess.  If <i>cmd</i> is an +Array+ of +String+, then it will
- *  be used as the subprocess's +argv+ bypassing a shell.
+ *  <code>IO</code> object.
+ *
+ *  _cmd_ is a string or an array as follows.
+ *
+ *    cmd:
+ *      "-"                                      : fork
+ *      commandline                              : command line string which is passed to a shell
+ *      [env, cmdname, arg1, ..., opts]          : command name and arguments (no shell)
+ *      [env, [cmdname, argv0], arg1, ..., opts] : command name and arguments including argv[0] (no shell)
+ *    (env and opts are optional.)
+ *
+ *  If _cmd_ is a +String+ ``<code>-</code>'',
+ *  then a new instance of Ruby is started as the subprocess.
+ *
+ *  If <i>cmd</i> is an +Array+ of +String+,
+ *  then it will be used as the subprocess's +argv+ bypassing a shell.
  *  The array can contains a hash at first for environments and
- *  a hash at last for options similar to <code>spawn</code>.  The default
- *  mode for the new file object is ``r'', but <i>mode</i> may be set
- *  to any of the modes listed in the description for class IO.
+ *  a hash at last for options similar to <code>spawn</code>.
+ *
+ *  The default mode for the new file object is ``r'',
+ *  but <i>mode</i> may be set to any of the modes listed in the description for class IO.
  *  The last argument <i>opt</i> qualifies <i>mode</i>.
  *
  *    # set IO encoding
Index: process.c
===================================================================
--- process.c	(revision 20521)
+++ process.c	(revision 20522)
@@ -2833,9 +2833,9 @@
  *      process group:
  *        :pgroup => true or 0 : process leader
  *        :pgroup => pgid      : join to specified process group 
- *      resource limit: xxx is core, cpu, data, etc.  See Process.setrlimit.
- *        :rlimit_xxx => limit
- *        :rlimit_xxx => [cur_limit, max_limit]
+ *      resource limit: resourcename is core, cpu, data, etc.  See Process.setrlimit.
+ *        :rlimit_resourcename => limit
+ *        :rlimit_resourcename => [cur_limit, max_limit]
  *      current directory:
  *        :chdir => str
  *      umask:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]