1. The current run of Expect is terminated (like with an Exit) but its return value is discarded.
2. result is evaluated to obtain the expect.
3. The obtained expect is run with the same run context (timeout, charset, etc) as the terminated expect.
4. The result obtained in the previous step becomes the result of the current expect (the terminated one).
This works out as a special combination of an Exit with a Returning. Where the exit deallocates the
resources allocated by the current expect. And the result of the Returning is obtained from the result of
executing the received expect.
Any action or expect block added after this will not be executed.
When this action is executed:
1. The current run of Expect is terminated (like with an
Exit
) but its return value is discarded. 2.result
is evaluated to obtain the expect. 3. The obtained expect is run with the same run context (timeout, charset, etc) as the terminated expect. 4. The result obtained in the previous step becomes the result of the current expect (the terminated one).This works out as a special combination of an
Exit
with aReturning
. Where the exit deallocates the resources allocated by the current expect. And the result of theReturning
is obtained from the result of executing the received expect.Any action or expect block added after this will not be executed.