[BUG & PATCH] can't quit the debugger after run completes
Michael G. Schwern [Thu, 14 Mar 2002 16:39:29 +0000 (11:39 -0500)]
Message-ID: <20020314213929.GA2912@blackrider>

p4raw-id: //depot/perl@15240

lib/perl5db.pl

index 711755e..e1ee591 100644 (file)
@@ -794,7 +794,11 @@ EOP
                                                next CMD;
                                        } 
                    }
-        $cmd =~ /^q$/ && ($fall_off_end = 1) && clean_ENV() && exit $?;
+                    $cmd =~ /^q$/ && do {
+                        $fall_off_end = 1;
+                        clean_ENV();
+                        exit $?;
+                    };
                    $cmd =~ /^t$/ && do {
                        $trace ^= 1;
                        local $\ = '';