From 95104258457e403632438ba183911d8b049ce677 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 4 Jun 2021 22:58:21 +0200 Subject: [PATCH] Shell: Add TMPDIR environment variable https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/ V1_chap08.html TMPDIR This variable shall represent a pathname of a directory made available for programs that need a place to create temporary files. Ports like PHP benefit from having this environment variable set, and there exist a lot of scripts that assume the presence of such an environment variable. --- Base/etc/shellrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Base/etc/shellrc b/Base/etc/shellrc index 8ce254e7eed..0d9849171e7 100644 --- a/Base/etc/shellrc +++ b/Base/etc/shellrc @@ -41,4 +41,6 @@ export PROMPT="\\X\\u@\\h:\\w\\a\\e[$prompt_color;1m\\h\\e[0m:\\e[34;1m\\w\\e[0m export HISTORY_AUTOSAVE_TIME_MS=10000 +export TMPDIR=/tmp + PROGRAMS_ALLOWED_TO_MODIFY_DEFAULT_TERMIOS=(stty)