This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch]perl5db.pl - What I needed to get the forked debugger to work
[perl5.git] / lib / perl5db.pl
index 2167f78..a64443b 100644 (file)
@@ -6766,10 +6766,9 @@ we go ahead and set C<$console> and C<$tty> to the file indicated.
 
 sub TTY {
 
-    # With VMS we can get here with $term undefined, so we do not
-    # switch to this terminal.  There may be a better place to make
-    # sure that $term is defined on VMS
-    if ( @_ and ($^O eq 'VMS') and !defined($term) ) {
+    # We can get here with $term undefined, which means that the new
+    # terminal has been created, but we can not switch to it.
+    if ( @_ and !defined($term)) {
        eval { require Term::ReadLine } or die $@;
         if ( !$rl ) {
            $term = new Term::ReadLine::Stub 'perldb', $IN, $OUT;