diff options
author | aycabta <aycabta@gmail.com> | 2020-08-18 21:43:19 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-08-18 21:43:19 +0900 |
commit | 6767a9ef2b0e4b19e58f7c148f6d176af73e55fc (patch) | |
tree | e9fc5e439f91de63a3df43c7581ebe918e7d8d59 | |
parent | d3b2c1a17585ad30fb297ab489da0505e8b9b97a (diff) | |
download | ruby-6767a9ef2b0e4b19e58f7c148f6d176af73e55fc.tar.gz |
Lounch external process on Windows correctly
-rw-r--r-- | test/irb/test_history.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 61bd41c9bd..430661cdfd 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -117,10 +117,9 @@ module TestIRB with_temp_stdio do |stdin, stdout| replace_stdio(stdin.path, stdout.path) do - cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)'] yield(stdin, stdout) stdin.close - system(cmds.join(' ')) + system('ruby', '-Ilib', '-Itest', '-W0', '-rirb', '-e', 'IRB.start(__FILE__)') stdout.flush result = stdout.read stdout.close |