bin/shellrecord in shellplay-0.1.7 vs bin/shellrecord in shellplay-0.1.8

- old
+ new

@@ -4,10 +4,12 @@ require 'open3' lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +SHELL = ENV['SHELL'] + require 'shellplay' continue = true session = Shellplay::Session.new @@ -94,10 +96,10 @@ 'stderr' => '', 'timespent' => 0 }) else start_time = Time.now - Open3.popen3("bash","-l", "-c", command) do |i, o, e, t| + Open3.popen3(SHELL,"-c", command) do |i, o, e, t| screen = Shellplay::Screen.new out = o.read err = e.read end_time = Time.now elapsed = end_time - start_time