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

ruby-changes:37554

From: nobu <ko1@a...>
Date: Wed, 18 Feb 2015 11:43:11 +0900 (JST)
Subject: [ruby-changes:37554] nobu:r49635 (trunk): [DOC] ENV keys must be strings [ci skip]

nobu	2015-02-18 11:42:58 +0900 (Wed, 18 Feb 2015)

  New Revision: 49635

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

  Log:
    [DOC] ENV keys must be strings [ci skip]
    
    * hash.c (env_aset): state that ENV keys must be strings.
    
    * process.c (rb_f_spawn): ditto.  [ruby-core:68146] [Bug #10859]

  Modified files:
    trunk/hash.c
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 49634)
+++ process.c	(revision 49635)
@@ -3950,6 +3950,8 @@ rb_f_system(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L3950
  *    env: hash
  *      name => val : set the environment variable
  *      name => nil : unset the environment variable
+ *
+ *      the keys must be strings.
  *    command...:
  *      commandline                 : command line string which is passed to the standard shell
  *      cmdname, arg1, ...          : command name and one or more arguments (This form does not use the shell. See below for caveats.)
Index: hash.c
===================================================================
--- hash.c	(revision 49634)
+++ hash.c	(revision 49635)
@@ -3034,6 +3034,7 @@ ruby_unsetenv(const char *name) https://github.com/ruby/ruby/blob/trunk/hash.c#L3034
  *
  * Sets the environment variable +name+ to +value+.  If the value given is
  * +nil+ the environment variable is deleted.
+ * +name+ must be a string.
  *
  */
 static VALUE

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

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