On Wed, Sep 22, 2010 at 09:17:08PM +0100, Neil Jerram wrote:
> Well, as the manual says:
> 
>  -- Macro: expect clause ...
>      [...]   The procedures
>      are called in turn after each character is read from the port,
>      [...]
> 
>      The test is successful if the procedure returns a non-false value.
> 
> Your lambda returns *unspecified*, which counts as a non-false value.
> So the whole (expect ...) invocation completes after reading just one
> character.

I must've missed that "each character" bit.

Maybe it would be better to post my original program that would just
hang.  I was only using expect to print debugging messages; my
original program used expect-strings.

--Aidan

Attachment: signature.asc
Description: Digital signature

Reply via email to