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'm upgrading some old hosts and the newer perl is warning from the sysread in interconect() (which looks like it will be an error in perl-5.30).
I've tested with current Expect + IO::Tty and still get the warning.
This hack silences the warning for the version 1.21 that comes with Ubuntu Bionic (the same change but with different offset also silences the warning for 1.35). For my use cases, this replicates the previous behavior, but I suspect it's not the 'right' fix for the module.
--- /usr/share/perl5/Expect.pm 2010-10-17 02:59:29.000000000 +0000
+++ foo/Expect.pm 2020-11-18 17:13:22.422382834 +0000
@@ -1107,6 +1107,7 @@
# doing something like $temp_mask='' unless defined ($temp_mask)
# has no effect whatsoever. This may be a bug in 5.001.
$read_mask = $read_mask | $temp_mask;
+ binmode($handle, ':raw');
}
if ($Expect::Debug) {
print STDERR "Read handles:\r\n";
The text was updated successfully, but these errors were encountered:
I'm upgrading some old hosts and the newer perl is warning from the sysread in interconect() (which looks like it will be an error in perl-5.30).
I've tested with current Expect + IO::Tty and still get the warning.
This hack silences the warning for the version 1.21 that comes with Ubuntu Bionic (the same change but with different offset also silences the warning for 1.35). For my use cases, this replicates the previous behavior, but I suspect it's not the 'right' fix for the module.
The text was updated successfully, but these errors were encountered: