mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 02:53:57 +02:00
* 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:
parent
0dcc1f0dfe
commit
640e0a33b7
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue