From 640e0a33b7a198be030b4080e32404a319f4c468 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 12 Jun 2012 12:41:08 +0000 Subject: * 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 --- test/ruby/test_process.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index b3ecc420ed..943ffc77d7 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 -- cgit v1.2.3