<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -226,7 +226,8 @@ protected
         rd.close
         $stdout.reopen wr
         $stderr.reopen wr
-        exec cmd, *args
+        exec(cmd, *args) rescue nil
+        exit! 1 # never gets here unless exec threw or failed
       end
       wr.close
       out = ''</diff>
      <filename>Library/Homebrew/formula.rb</filename>
    </modified>
    <modified>
      <diff>@@ -88,8 +88,8 @@ end
 def safe_system cmd, *args
   puts &quot;#{cmd} #{args*' '}&quot; if ARGV.verbose?
   fork do
-    trap(&quot;EXIT&quot;) {} # no bt on exit from this short-lived fork
-    exit! 1 unless exec(cmd, *args)
+    exec(cmd, *args) rescue nil
+    exit! 1 # never gets here unless exec failed
   end
   Process.wait
   raise ExecutionError.new(cmd, args, $?) unless $?.success?</diff>
      <filename>Library/Homebrew/utils.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ab7697f528071f7e150383ffa20476f5082fd912</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/piranha/homebrew/commit/cf04a0b4463cb48be1c69de2fd20e64c3fe14eee</url>
  <id>cf04a0b4463cb48be1c69de2fd20e64c3fe14eee</id>
  <committed-date>2009-11-11T11:42:35-08:00</committed-date>
  <authored-date>2009-11-11T11:42:35-08:00</authored-date>
  <message>Fix system() exception showing regression

Rather than showing a backtrace that says &quot;couldn't find command blah&quot;. Admittedly it's possible that the error will be something else, but unlikely. And this is neater.

Ideally we'd push the bt through an error pipe like we do with install.rb. And I guess we'll do this eventually.</message>
  <tree>fc47b9c53ae9a204a1de58d76b6b86c576cd2f3a</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
