. command.com doubles an output line when prompting for extensions
. Term::Cap has no business trying to run obscure Un*x utilities on VMS
. perl5db doesn't clean up after itself
p4raw-id: //depot/perl@12385
$ i_rp = 0
$ firstread_rp_loop:
$ sub_rp = F$EXTRACT(i_rp,COLUMNS,rp)
-$ echo4 "''sub_rp'"
$ i_rp = i_rp + COLUMNS
+$ if i_rp .LT. len_rp THEN echo4 "''sub_rp'"
$ IF i_rp .LT. len_rp THEN GOTO firstread_rp_loop
$ READ SYS$COMMAND/PROMPT="''sub_rp'" ans
$ ELSE
{
# last resort--fake up a termcap from terminfo
local $ENV{TERM} = $term;
- $entry = `infocmp -C 2>/dev/null`;
+ if ($^O ne 'VMS') {
+ $entry = `infocmp -C 2>/dev/null`;
+ } else {
+ $entry = undef;
+ }
}
croak "Can't find a valid termcap file" unless @termcap_path || $entry;
next CMD;
}
}
- $cmd =~ /^q$/ && ($fall_off_end = 1) && exit $?;
+ $cmd =~ /^q$/ && ($fall_off_end = 1) && clean_ENV() && exit $?;
$cmd =~ /^h$/ && do {
print_help($help);
next CMD; };
print $OUT "Use `q' to quit or `R' to restart. `h q' for details.\n"
}
+sub clean_ENV {
+ if (defined($ini_pids)) {
+ $ENV{PERLDB_PIDS} = $ini_pids;
+ } else {
+ delete($ENV{PERLDB_PIDS});
+ }
+}
+
END {
$finished = 1 if $inhibit_exit; # So that some keys may be disabled.
$fall_off_end = 1 unless $inhibit_exit;