From: Mark Wooding Date: Wed, 20 Sep 2017 15:25:20 +0000 (+0100) Subject: dot/shell-rc: Sink finding temporary directory. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/6054bdb607147d4cd9997b10b6f38ab36a2998f5 dot/shell-rc: Sink finding temporary directory. We don't need this during the main body of the file. --- diff --git a/dot/shell-rc b/dot/shell-rc index ac8819d..e990339 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -14,10 +14,6 @@ __mdw_source_if_exists () { done } -## 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. @@ -328,6 +324,10 @@ pathhack () { ###-------------------------------------------------------------------------- ### Finishing touches. +## 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 + ## For `root' use -- some simple molly-guards. case $(id -u) in 0)