=F7 =F7=D4=D2, 19.03.2002, =D7 15:56, RGi...@a1... =CE=C1=D0=C9=D3=C1=CC=
:
> Don't forget that an Expect object is basically a filehandle, and the=20
> semantics of cloning a filehandle are vague, to say the least. Should=20
> the filehandle be connected to the same file/process? Should we reuse=20
> the pty? Copy the tty settings? Or just the Expect-specific=20
> parameters? I don't see a clear, easy DWIM-solution for this, so I=20
> wouldn't poke deeper into this snake-pit...
Ok, I see, probably 'clone' is a bad idea... I just didn't count all
possible problems in design and implementation before asking for it...
> But what I could add is a check that prohibits spawning another process=20
> with an already-used object to avoid such misunderstandings. And of=20
> course amend the docs...
Ok, it would be enough for a newbie like me :-)
Thank you.
Alexey Morozov.
|