> +prompt_newuser_precmd() {
> + local exitstatus=$?
It's not documented that precmd hooks can rely on $? to be the exit code
of the last command. That does work, though (because callhookfunc()
calls doshfunc(noreturnval=1)), and seems useful, and I guess we won't
want to change it, so shall we document it?