lib/doc/command.rb in doc-0.2.6 vs lib/doc/command.rb in doc-0.2.7
- old
+ new
@@ -18,11 +18,10 @@
def run
command_string = command.length == 1 ? command.first : command.map(&:to_s).shelljoin
output = IO.popen("#{command_string} 2>&1", &:read)
@status = $?
status.success? || begin
- $stderr.puts "cd #{Dir.pwd.shellescape}; #{command_string}"
- $stderr.puts output
+ $stderr.puts "cd #{Dir.pwd.shellescape}; #{command_string}\n#{output}"
case
when status.signaled?
if status.termsig == 2
raise Interrupt.new
else