From: Patrick Doyle Date: 2008-10-10T22:50:23+09:00 Subject: rescue clause ------=_Part_102159_9975553.1223646766900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have been looking at the source code for rake (as you can probably tell from my previous questions), in an attempt to study a reasonable sized Ruby application and see what I can learn from the exercise. I've come across something that looks like it could be an innocuous typo in the code, or it could be doing something that I just don't understand. Here is the code snippet: def standard_exception_handling begin yield rescue SystemExit => ex # Exit silently with current status exit(ex.status) rescue SystemExit, OptionParser::InvalidOption => ex # Exit silently exit(1) end end I am curious as to why SystemExit shows up in 2 different rescue clauses. Is that a typo? Or is something else going on? --wpd ------=_Part_102159_9975553.1223646766900--