From 436ff26c3688198de8e8e48121296eace0b5d119 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Mon, 11 Nov 2019 17:06:55 -0500 Subject: 9c, 9l: use $TMPDIR if available (#272) NixOS sandboxed builds (at least on Mac) don't have access to /tmp, and this should be better POSIX. --- bin/9l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/9l') diff --git a/bin/9l b/bin/9l index 0e939524..032d3801 100755 --- a/bin/9l +++ b/bin/9l @@ -346,7 +346,7 @@ then echo $ld -L$PLAN9/lib "$@" $libsl $extralibs $frameworks fi -xtmp=/tmp/9l.$$.$USER.out +xtmp="${TMPDIR-/tmp}/9l.$$.$USER.out" xxout() { sed 's/.*: In function `[^:]*: *//' $xtmp | egrep . | egrep -v 'is (often|almost always) misused|is dangerous, better use|text-based stub' -- cgit v1.2.3