chiark / gitweb /
dot/shell-rc: Sink finding temporary directory.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 20 Sep 2017 15:25:20 +0000 (16:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 20 Sep 2017 15:49:30 +0000 (16:49 +0100)
We don't need this during the main body of the file.

dot/shell-rc

index ac8819dcbe0a1fa3e5ab02bd8563114b15f0e65d..e990339d09c9217e760216e63eb99c8da4fc45e8 100644 (file)
@@ -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)