From 6054bdb607147d4cd9997b10b6f38ab36a2998f5 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 20 Sep 2017 16:25:20 +0100 Subject: [PATCH] dot/shell-rc: Sink finding temporary directory. We don't need this during the main body of the file. --- dot/shell-rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.11.0