Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0
Assignee: Thomas E Enebo
Components: Standard Library
Created: 14/Nov/12 9:52 AM
Description:

Similar to jruby-300

require 'test/unit'
require 'fileutils'
class DirTest < Test::Unit::TestCase
def setup
@dir = "test/foo"
end
def teardown
FileUtils.rm_f(@dir)
end
def test_nochdir
Dir.chdir(@dir) do
assert_equal @dir, File.cwd
end
end
def test_chdir
Dir.chdir(@dir) do
exec 'echo `pwd`'
end
#should echo $cwd/test/foo, currently echoes $cwd instead
#jruby appears to pass $cwd into the exec call.
end
end

Environment: tried on osx, linux
Project: JRuby
Priority: Major Major
Reporter: McClain Looney
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to