From 20979f2031a3f49e03bf103b4bd06b65c7eb9141 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 5 Jul 2008 12:25:33 +0000 Subject: update spawn rdoc a bit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/process.c b/process.c index b5ea540a1..7f66821c4 100644 --- a/process.c +++ b/process.c @@ -2778,6 +2778,10 @@ rb_f_system(int argc, VALUE *argv) * * If a hash is given as +env+, the environment is * updated by +env+ before exec(2) 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 -- cgit