In shell, always update the prompt after a switch/reconfigure, even if the result of the command is non 0 because in case of a complex command we may actually not be testing the result of the switch/reconfigure command itself, like for example: switch ../trunk | false.