Fixed a bug where -rr (restart regex) command line option could cause shell errors
Andy Grundman [Tue, 11 Dec 2007 14:17:58 +0000 (14:17 +0000)]
Changes
lib/Catalyst/Engine/HTTP.pm

diff --git a/Changes b/Changes
index f44fa49..50a9cd1 100644 (file)
--- a/Changes
+++ b/Changes
@@ -5,6 +5,8 @@
         - Add Catalyst::Stats (Jon Schutz)
         - Fixed a bug where ?q=bar=baz is decoded as q=>'bar', not 'bar=baz'.
           (Tatsuhiko Miyagawa, Masahiro Nagano)
+        - Fixed a bug where -rr (restart regex) command line option could cause
+          shell errors. (Aristotle Pagaltzis, Chisel Wright)
 
 5.7011  2007-10-18 20:40:00
         - Allow multiple restart directories and added option to follow
index ec4ad86..fcb36b4 100644 (file)
@@ -333,7 +333,7 @@ sub run {
         use Config;
         $ENV{PERL5LIB} .= join $Config{path_sep}, @INC; 
         
-        exec $^X . ' "' . $0 . '" ' . join( ' ', @{ $options->{argv} } );
+        exec $^X, $0, @{ $options->{argv} };
     }
 
     exit;