Hi all,
I'm not sure of the best way to report this bug because I
cannot
reliably replicate the behavior. It fails consistently on
my MacBook,
but never on Schwern's MacBook. It sometimes fails *once
and only
once* on my Ubuntu box. Others have similar issues.
You can read background (and an analysis by Tye) at:
http
://www.perlmonks.org/index.pl?node_id=639718
The bug:
perl -e '`perl -d -le "print 1"`'
For some people (not all and not consistently), we get a
"Unable to get
terminal size" error. The use case is better support
for integrating
the debugger with Test::Harness 3.0.
A quick hack to fix it:
perl -e '`COLUMNS=80 LINES=24 perl -d -le "print
1"`'
A more complete error message below.
Cheers,
Ovid
$ perl -e '`perl -d -le "print 1"`'
Loading DB routines from perl5db.pl version 1.28
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more
help.
main::(-e:1): print 1
Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't
work. The
COLUMNS and LINES environment variables didn't work. The
resize program
didn't work. at
/Library/Perl/5.8.6/darwin-thread-multi-2level/Term/ReadKey.
pm line
362.
Compilation failed in require at
/Library/Perl/5.8.6/Term/ReadLine/Perl.pm line 63.
at /Library/Perl/5.8.6/Term/ReadLine/Perl.pm line 63
Term::ReadLine::Perl::new('Term::ReadLine',
'perldb',
'GLOB(0x1849f68)', 'GLOB(0x181100c)') called at
/System/Library/Perl/5.8.6/perl5db.pl line 6029
DB::setterm called at
/System/Library/Perl/5.8.6/perl5db.pl
line 2203
DB: B called
at -e line 1
Debugged program terminated. Use q to quit or R to
restart,
use O inhibit_exit to avoid stopping after program
termination,
h q, h R or h O to get additional info.
DB<1> q
--
Buy the book - http://www.or
eilly.com/catalog/perlhks/
Perl and CGI - http://u
sers.easystreet.com/ovid/cgi_course/
Personal blog - http://publiu
s-ovidius.livejournal.com/
Tech blog - http://use.perl.or
g/~Ovid/journal/
|