lib/doc/command.rb in doc-0.2.3 vs lib/doc/command.rb in doc-0.2.4

- old
+ new

@@ -15,14 +15,14 @@ @command.concat(arguments) end def run command_string = command.length == 1 ? command.first : command.map(&:to_s).shelljoin - puts "cd #{Dir.pwd.shellescape}; #{command_string}" output = IO.popen("#{command_string} 2>&1", &:read) @status = $? status.success? || begin - print output + $stderr.puts "cd #{Dir.pwd.shellescape}; #{command_string}" + $stderr.puts output case when status.signaled? if status.termsig == 2 raise Interrupt.new else