changeset 25554:e52ba2d9f6d7

(sh-tmp-file): Use $TMPDIR, if defined, for sh.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 06 Sep 1999 09:05:24 +0000
parents 3af0f2f6145c
children 301ce7f0b398
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Mon Sep 06 03:46:33 1999 +0000
+++ b/lisp/progmodes/sh-script.el	Mon Sep 06 09:05:24 1999 +0000
@@ -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 <occitan@esperanto.org>
 ;; Version: 2.0e
@@ -1344,7 +1344,7 @@
        "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))