Subject: | non-compliant implementation of MinLine() method |
Hi Ilya,
this issue was already forwarded to you years ago by Joerg Jaspert. I'm
filing a report here as well, in case it's been forgotten, as it's still
present in 1.0208 :)
From the docs included with Term::ReadLine:
""MinLine"" If argument is specified, it is an advice on
minimal size of line to be included into his-
tory. "undef" means do not include anything
into history. Returns the old value.
From the code:
sub MinLine { shift; $readline::minlength = shift }
Clearly, this needs to be more like:
sub MinLine
{
my $rv = $readline::minlength;
if(@_ == 2) { $readline::minlength = $_[1] }
return $rv;
}
to comply with the interface definition.
Please consider including the fix.
[This was originally reported as Debian bug #121176,
http://bugs.debian.org/121176 ]
Cheers,
--
Niko Tyni (on behalf of the Debian Perl Group)
ntyni@iki.fi