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

ruby-changes:6374

From: akr <ko1@a...>
Date: Sat, 5 Jul 2008 21:25:45 +0900 (JST)
Subject: [ruby-changes:6374] Ruby:r17890 (trunk): update spawn rdoc a bit.

akr	2008-07-05 21:25:33 +0900 (Sat, 05 Jul 2008)

  New Revision: 17890

  Modified files:
    trunk/process.c

  Log:
    update spawn rdoc a bit.


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

Index: process.c
===================================================================
--- process.c	(revision 17889)
+++ process.c	(revision 17890)
@@ -2778,7 +2778,11 @@
  *
  *  If a hash is given as +env+, the environment is
  *  updated by +env+ before <code>exec(2)</code> in the child process.
+ *  If a pair in +env+ has nil as the value, the variable is deleted.
  *
+ *    # set FOO as BAR and unset BAZ.
+ *    pid = spawn({"FOO"=>"BAR", "BAZ"=>nil}, command)
+ *
  *  If a hash is given as +options+,
  *  it specifies
  *  process group,

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

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