From 9de7130a9a77482b27a101211ff0f4a63d57a613 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sun, 17 Nov 2019 16:38:50 +0900 Subject: Support short options concatenation to `mruby` command #### Before this patch: ``` $ bin/mruby -ce 1 bin/mruby: Cannot open program file: 1 ``` #### After this patch: ``` $ bin/mruby -ce 1 Syntax OK ``` --- mrbgems/mruby-bin-mruby/bintest/mruby.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb') diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index e032ff79a..8da51bac9 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -80,10 +80,8 @@ assert('mruby -c option') do end assert('mruby -d option') do - o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}` - assert_equal "false\n", o - o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}` - assert_equal "true\n", o + assert_mruby("false\n", "", true, ["-e", "p $DEBUG"]) + assert_mruby("true\n", "", true, ["-dep $DEBUG"]) end assert('mruby -e option (no code specified)') do -- cgit v1.2.3