This turns out to be necessary to not have pterm forget the temporary
directory, so make it common behaviour.
## Completion.
__mdw_source_if_exists /etc/bash_completion "$HOME/.bash_completion"
## Completion.
__mdw_source_if_exists /etc/bash_completion "$HOME/.bash_completion"
-## Set the temporary directory again. (If we've switched users, we'll want a
-## different temporary directory.)
-case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b); esac
-
###--------------------------------------------------------------------------
### Prompt hacking.
###--------------------------------------------------------------------------
### Prompt hacking.
+## Set the temporary directory again. (A setuid or setgid program may have
+## unhelpfully forgotten this for us.)
+case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b); esac
+
###--------------------------------------------------------------------------
### Prompt machinery.
###--------------------------------------------------------------------------
### Prompt machinery.