From 166231e89fb8e205a628db6907fcd5a7ad407982 Mon Sep 17 00:00:00 2001 From: gambas Date: Wed, 12 Feb 2020 17:28:57 +0100 Subject: [PATCH] Process: The answer to an expected prompt is correctly sent now. [GB.UTIL] * BUG: Process: The answer to an expected prompt is correctly sent now. --- comp/src/gb.util/.src/ProcessExpect.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/src/gb.util/.src/ProcessExpect.class b/comp/src/gb.util/.src/ProcessExpect.class index 5db6c4f76..9037b2478 100644 --- a/comp/src/gb.util/.src/ProcessExpect.class +++ b/comp/src/gb.util/.src/ProcessExpect.class @@ -43,7 +43,7 @@ Public Sub ExpectAfter_Read() For I = 0 To $aExpect.Max Step 2 If RTrim($sBuffer) Like $aExpect[I] Then - If $aExpect[I + 1] Then Print #Me, $aExpect[I + 1] + If $aExpect[I + 1] Then Print #hProcess, $aExpect[I + 1] Object.Raise(hProcess, "Prompt", [$aExpect[I], $aExpect[I + 1]]) $sBuffer = "" Endif