You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running "perl -de1" to enter into the debugger and was
unable to got it's prompt and cpu/memory usage were growing up.
I finnaly found that a file c:\dev\tty was existing on my system
(must be a mistake outside of perl).
If I delete this file the debugger ran as expected.
It is because in perl5db.pl at line 1399 a test for '-e /dev/tty'
doesn't care that '$^O eq MSWin32' and use '/dev/tty' it rather
than 'con' for the $console.
On Tue, 03 Jul 2012 09:12:15 GMT, xlat@cpan.org wrote:
This is a bug report for perl from xlat@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.16.0.
-----------------------------------------------------------------
[Please describe your issue here]
I was running "perl -de1" to enter into the debugger and was
unable to got it's prompt and cpu/memory usage were growing up.
I finnaly found that a file c:\dev\tty was existing on my system
(must be a mistake outside of perl).
If I delete this file the debugger ran as expected.
It is because in perl5db.pl at line 1399 a test for '-e /dev/tty'
doesn't care that '$^O eq MSWin32' and use '/dev/tty' it rather
than 'con' for the $console.
Thanks.
Let me see if I can correctly re-state this problem.
You invoked the perl debugger, whose source code is found in lib/perl5db.pl. As of now (commit 8df0224), starting at line 1530 of that file, there is an if-elsif-else block where we try to determine what the console should be on various systems. The first 'elsif' is:
... which was triggered on your system because there accidentally existed a file c:\dev\tty thereon. Consequently, we didn't reach the *second* 'elsif' block:
Hi, yes that is correct.
Just a small precision: on windows platforms /dev/tty is relative to the
current drive which in my case was my system drive c: but it is not
necessary always the case.
Thank you.
Le 31 déc. 2016 02:43, "James E Keenan via RT" <perlbug-followup@perl.org>
a écrit :
On Tue, 03 Jul 2012 09:12:15 GMT, xlat@cpan.org wrote:
This is a bug report for perl from xlat@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.16.0.
-----------------------------------------------------------------
[Please describe your issue here]
I was running "perl -de1" to enter into the debugger and was
unable to got it's prompt and cpu/memory usage were growing up.
I finnaly found that a file c:\dev\tty was existing on my system
(must be a mistake outside of perl).
If I delete this file the debugger ran as expected.
It is because in perl5db.pl at line 1399 a test for '-e /dev/tty'
doesn't care that '$^O eq MSWin32' and use '/dev/tty' it rather
than 'con' for the $console.
Thanks.
Let me see if I can correctly re-state this problem.
You invoked the perl debugger, whose source code is found in lib/perl5db.pl.
As of now (commit 8df0224), starting at
line 1530 of that file, there is an if-elsif-else block where we try to
determine what the console should be on various systems. The first 'elsif'
is:
... which was triggered on your system because there accidentally existed a
file c:\dev\tty thereon. Consequently, we didn't reach the *second*
'elsif' block:
On Mon, 02 Jan 2017 21:25:37 GMT, xlat@cpan.org wrote:
Le 31 déc. 2016 02:43, "James E Keenan via RT" <perlbug-followup@perl.org>
a écrit :
On Tue, 03 Jul 2012 09:12:15 GMT, xlat@cpan.org wrote:
This is a bug report for perl from xlat@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.16.0.
-----------------------------------------------------------------
[Please describe your issue here]
I was running "perl -de1" to enter into the debugger and was
unable to got it's prompt and cpu/memory usage were growing up.
I finnaly found that a file c:\dev\tty was existing on my system
(must be a mistake outside of perl).
If I delete this file the debugger ran as expected.
It is because in perl5db.pl at line 1399 a test for '-e /dev/tty'
doesn't care that '$^O eq MSWin32' and use '/dev/tty' it rather
than 'con' for the $console.
Thanks.
Let me see if I can correctly re-state this problem.
You invoked the perl debugger, whose source code is found in lib/perl5db.pl.
As of now (commit 8df0224), starting at
line 1530 of that file, there is an if-elsif-else block where we try to
determine what the console should be on various systems. The first 'elsif'
is:
... which was triggered on your system because there accidentally existed a
file c:\dev\tty thereon. Consequently, we didn't reach the *second*
'elsif' block:
Is that a correct analysis?
Hi, yes that is correct.
Just a small precision: on windows platforms /dev/tty is relative to the
current drive which in my case was my system drive c: but it is not
necessary always the case.
Thank you.
P5P: Would it be sufficient to move the test for '/dev/tty' to be the final 'elsif' branch? Or is there some other way to identify a Unix-like OS?
Activity
p5pRT commentedon Jul 3, 2012
From @xlat
Created by @xlat
I was running "perl -de1" to enter into the debugger and was
unable to got it's prompt and cpu/memory usage were growing up.
I finnaly found that a file c:\dev\tty was existing on my system
(must be a mistake outside of perl).
If I delete this file the debugger ran as expected.
It is because in perl5db.pl at line 1399 a test for '-e /dev/tty'
doesn't care that '$^O eq MSWin32' and use '/dev/tty' it rather
than 'con' for the $console.
Thanks.
Perl Info
p5pRT commentedon Dec 31, 2016
From @jkeenan
On Tue, 03 Jul 2012 09:12:15 GMT, xlat@cpan.org wrote:
Let me see if I can correctly re-state this problem.
You invoked the perl debugger, whose source code is found in lib/perl5db.pl. As of now (commit 8df0224), starting at line 1530 of that file, there is an if-elsif-else block where we try to determine what the console should be on various systems. The first 'elsif' is:
#####
1540 elsif ( -e "/dev/tty" ) {
1541 $console = "/dev/tty";
1542 }
#####
... which was triggered on your system because there accidentally existed a file c:\dev\tty thereon. Consequently, we didn't reach the *second* 'elsif' block:
#####$^O eq 'dos' or -e "con" or $ ^O eq 'MSWin32' ) {
1548 elsif (
1549 $console = "con";
1550 }
#####
Is that a correct analysis?
Thank you very much.
--
James E Keenan (jkeenan@cpan.org)
p5pRT commentedon Dec 31, 2016
The RT System itself - Status changed from 'new' to 'open'
p5pRT commentedon Jan 2, 2017
From @xlat
Hi, yes that is correct.
Just a small precision: on windows platforms /dev/tty is relative to the
current drive which in my case was my system drive c: but it is not
necessary always the case.
Thank you.
Le 31 déc. 2016 02:43, "James E Keenan via RT" <perlbug-followup@perl.org>
a écrit :
On Tue, 03 Jul 2012 09:12:15 GMT, xlat@cpan.org wrote:
Let me see if I can correctly re-state this problem.
You invoked the perl debugger, whose source code is found in lib/perl5db.pl.
As of now (commit 8df0224), starting at
line 1530 of that file, there is an if-elsif-else block where we try to
determine what the console should be on various systems. The first 'elsif'
is:
#####
1540 elsif ( -e "/dev/tty" ) {
1541 $console = "/dev/tty";
1542 }
#####
... which was triggered on your system because there accidentally existed a
file c:\dev\tty thereon. Consequently, we didn't reach the *second*
'elsif' block:
#####$^O eq 'dos' or -e "con" or $ ^O eq 'MSWin32' ) {
1548 elsif (
1549 $console = "con";
1550 }
#####
Is that a correct analysis?
Thank you very much.
--
James E Keenan (jkeenan@cpan.org)
p5pRT commentedon Jan 2, 2017
From @jkeenan
On Mon, 02 Jan 2017 21:25:37 GMT, xlat@cpan.org wrote:
P5P: Would it be sufficient to move the test for '/dev/tty' to be the final 'elsif' branch? Or is there some other way to identify a Unix-like OS?
Thank you very much.
--
James E Keenan (jkeenan@cpan.org)
p5pRT commentedon Jan 4, 2017
From @arc
James E Keenan via RT <perlbug-followup@perl.org> wrote:
Yes, that sounds like a sensible way to proceed.
Thanks, applied (with authorship assigned to you) as
f1cba94.
--
Aaron Crane ** http://aaroncrane.co.uk/
p5pRT commentedon Jan 4, 2017
@arc - Status changed from 'open' to 'resolved'