Open briandfoy opened 1 year ago
Net::SSH::Perl can't support TERM=xterm-color now.
file Net/SSH/Perl/SSH2.pm line 221: 221 my($term) = $ENV{TERM} =~ /(\w+)/;
and file Net/SSH/Perl/SSH1.pm line 222:
222 my($term) = $ENV{TERM} =~ /(\w+)/;
had better modify above lines to:
my ($term) = $ENV{TERM} =~ /(\S+)/;
or
my $term = $ENV{TERM};
I don't know how to reproduce the problem but the fix looks easy. I added it to
https://github.com/renormalist/Net-SSH-Perl
for another release.
Kind regards, Steffen
This ticket was imported from rt.cpan.org 61388
Net::SSH::Perl can't support TERM=xterm-color now.
file Net/SSH/Perl/SSH2.pm line 221: 221 my($term) = $ENV{TERM} =~ /(\w+)/;
and file Net/SSH/Perl/SSH1.pm line 222:
222 my($term) = $ENV{TERM} =~ /(\w+)/;
had better modify above lines to:
or