From 0a27f041d03ff1196156eecc2ccfc9db05d1840c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 13 Jan 2010 09:02:42 +0000 Subject: [PATCH] Print quotes around executed arguments with spaces Eg: ['foo', 'bar la'] -> "foo 'bar la'" --- Library/Homebrew/global.rb | 20 ++++++++++++++++---- bin/brew | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index ce79da2ec5..92513294fa 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -61,11 +61,23 @@ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY class ExecutionError e puts "http://github.com/mxcl/homebrew/blob/master/Library/Formula/#{formula_name}.rb#L#{$2}" ohai "Environment" dump_config - puts "Exit status: #{e.status.exitstatus}" + puts "Exit status: #{e.exit_status}" onoe e puts PLEASE_REPORT_BUG # this feature can be slow (depends on network conditions and if github is up)