From 3cc16ccd9e66ee14b94257e777e21bc316e3c4cc Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 8 Nov 2016 21:37:51 -0800 Subject: [PATCH] io.files.temp.unix: allowing TMPDIR to override /tmp. --- basis/io/files/temp/unix/unix.factor | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basis/io/files/temp/unix/unix.factor b/basis/io/files/temp/unix/unix.factor index cf9df11a4b..7bbe96e36e 100644 --- a/basis/io/files/temp/unix/unix.factor +++ b/basis/io/files/temp/unix/unix.factor @@ -1,7 +1,9 @@ ! (c)2012 Joe Groff bsd license -USING: io.files.temp io.pathnames system xdg ; +USING: environment io.files.temp io.pathnames sequences system +xdg ; IN: io.files.temp.unix -M: unix default-temp-directory "/tmp/factor-temp" ; +M: unix default-temp-directory + "TMPDIR" os-env [ "/tmp" ] when-empty "factor-temp" append-path ; M: unix default-cache-directory xdg-cache-home ".factor" append-path ;