From: Austin S. <te...@of...> - 2004-05-26 19:35:29
|
On Wed, May 26, 2004 at 09:13:27AM -0400, John Wingenbach wrote: > > Note that the creation of the slave (assuming the if test fails), is > dependent upon retrieving the ttyname. However, Expect.pm "use"s both > POSIX and IO::Pty. The problem with the default 'use POSIX;' is that > POSIX also has a ttyname declaration and thus once an Expect object is > blessed, the ttyname function used is NOT the IO::Pty one. The solution > is to limit what is being incorporated into Expect from the POSIX > module. From my limited tests, I have been able successfully change the > use line to: > Seems to me, after thinking about this for a bit, that IO::Pty::ttyname and POSIX::ttyname should do exactly the same thing. If POSIX::ttyname isn't returning correctly it seems like we should patch it. One of the issues is that it probably doesn't like filehandle refs, but that would probably be an easy fix. Austin |