From: ivan Date: Tue, 2 Jul 2002 13:54:39 +0000 (+0000) Subject: fix stdin_string X-Git-Tag: Net_SSH_0_06~2 X-Git-Url: http://git.freeside.biz/gitweb/?p=Net-SSH.git;a=commitdiff_plain;h=dbcc8ef3a679058ca47a3b994c6a488c14870bd6 fix stdin_string --- diff --git a/SSH.pm b/SSH.pm index 0fe98cf..d3a8c22 100644 --- a/SSH.pm +++ b/SSH.pm @@ -171,8 +171,7 @@ sub _check_ssh_version { open3($writer, $reader, $error, $ssh, '-V'); my $ssh_version = <$error>; chomp($ssh_version); - $ssh_version =~ s/.*OpenSSH[-|_](\w+?)\.\w+?\.\w+?.*/$1/g; - if ($ssh_version == 1) { + if ( $ssh_version =~ /.*OpenSSH[-|_](\w+)\./ && $1 == 1 ) { $equalspace = " "; } else { $equalspace = "=";