* process.c (rb_exec_fillarg): treat '=' character as an meta

character to detect assignments preceding command name.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-06-12 12:41:08 +00:00
parent 0dcc1f0dfe
commit 640e0a33b7
3 changed files with 13 additions and 1 deletions

View file

@ -1433,4 +1433,11 @@ class TestProcess < Test::Unit::TestCase
}
end
def test_sh_env
IO.popen("foofoo=barbar env") {|f|
lines = f.readlines
assert_operator(lines, :include?, "foofoo=barbar\n")
}
end if File.executable?("/bin/sh")
end