ruby-changes:28279
From: nobu <ko1@a...>
Date: Wed, 17 Apr 2013 14:20:24 +0900 (JST)
Subject: [ruby-changes:28279] nobu:r40331 (trunk): envutil.rb: env hash
nobu 2013-04-17 14:20:14 +0900 (Wed, 17 Apr 2013) New Revision: 40331 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40331 Log: envutil.rb: env hash * test/ruby/envutil.rb (assert_separately): keep environment hash first if exists. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 40330) +++ test/ruby/envutil.rb (revision 40331) @@ -292,7 +292,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L292 end eom args = args.dup - $:.each{|l| args.unshift "-I#{l}" } + args.insert((Hash === args.first ? 1 : 0), *$:.map {|l| "-I#{l}"}) ignore_stderr = opt.delete(:ignore_stderr) stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, opt) abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/