Skip to content

IsolatedScriptingContainer does not honour setting Environment or Argv #3161

@mkristian

Description

@mkristian
c = IsolatedScriptingContainer.new
c.argv = ['-debug']
c.environment = { 'GEM_PATH' => '/tmp' }
c.runScriptlet("p ARGV; p ENV")

the configuration does not show up on ARGV or ENV. it works on 9k but not on 1.7.x since the constructor of IsolatedScriptingContainer does run a scriptlet already and then all changes to ARGV and ENV get ignored.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions