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