From 751d474c0a03c2606b34edde44d016fd5691a844 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 6 Sep 1999 09:05:24 +0000 Subject: [PATCH] (sh-tmp-file): Use $TMPDIR, if defined, for sh. --- lisp/progmodes/sh-script.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 1c6994b1fc8..c666e0e2fee 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1,6 +1,6 @@ ;;; sh-script.el --- shell-script editing commands for Emacs -;; Copyright (C) 1993, 94, 95, 96, 1997 by Free Software Foundation, Inc. +;; Copyright (C) 1993, 94, 95, 96, 97, 1999 by Free Software Foundation, Inc. ;; Author: Daniel Pfeiffer ;; Version: 2.0e @@ -1344,7 +1344,7 @@ t means to return a list of all possible completions of STRING. "tmp = /tmp/" str ".$pid" \n "fn sigexit { rm $tmp^* >[2]/dev/null }") (sh (file-name-nondirectory (buffer-file-name)) - "TMP=/tmp/" str ".$$" \n + "TMP=${TMPDIR:-/tmp}/" str ".$$" \n "trap \"rm $TMP* 2>/dev/null\" " ?0)) -- 2.39.5