summaryrefslogtreecommitdiff
path: root/lib/perl5db.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-03-02 18:49:18 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2016-03-02 19:44:06 -0500
commitc9cc59407affa7b6b624f2ef91a6a1507a2fcab5 (patch)
treecbb90124d3c690fe3e96505972e641047b9517f4 /lib/perl5db.pl
parentcf412c929ccc10fe9df362c9d8a889b1f99f59ff (diff)
downloadperl-c9cc59407affa7b6b624f2ef91a6a1507a2fcab5.tar.gz
Defaulting to VMS is probably not right.
Diffstat (limited to 'lib/perl5db.pl')
-rw-r--r--lib/perl5db.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index 67ad3d1d0e..aa06a758eb 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -1560,10 +1560,15 @@ We then determine what the console should be on various systems:
=cut
- else {
+ elsif ($^O eq 'VMS') {
+ $console = 'sys$command';
+ }
+
+# Keep this last.
- # everything else is ...
- $console = "sys\$command";
+ else {
+ _db_warn("Can't figure out your console, using stdin");
+ undef $console;
}
=pod