Sha256: 592b354654cfc6a9de1cedafada718325363bbd9e9f34fe7cf09bacec86f54c4

Contents?: true

Size: 206 Bytes

Versions: 22

Compression:

Stored size: 206 Bytes

Contents

require 'execve'

my_env = ENV.to_hash.merge('HOME' => '/foo')
# my_env = ENV.to_hash

env = my_env.keys.inject([]) { |acc, k| acc << "#{k}=#{my_env[k]}"; acc }

execve(%Q{ruby -e "puts ENV['HOME']"}, env)

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
god-0.7.15 ideas/execve/go.rb
god-0.7.14 ideas/execve/go.rb