FIXFOR: Ticket #3001: fix read and update of subshell prompt.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>