emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el
Date: Mon, 10 Oct 2005 17:23:46 -0400

Index: emacs/lisp/progmodes/sh-script.el
diff -c emacs/lisp/progmodes/sh-script.el:1.166 
emacs/lisp/progmodes/sh-script.el:1.167
*** emacs/lisp/progmodes/sh-script.el:1.166     Mon Sep 19 09:17:14 2005
--- emacs/lisp/progmodes/sh-script.el   Mon Oct 10 21:23:45 2005
***************
*** 3392,3407 ****
    "Insert code to setup temporary file handling.  See `sh-feature'."
    (bash sh-append ksh88)
    (csh (file-name-nondirectory (buffer-file-name))
!        "set tmp = /tmp/" str ".$$" \n
         "onintr exit" \n _
         (and (goto-char (point-max))
            (not (bolp))
            ?\n)
         "exit:\n"
         "rm $tmp* >&/dev/null" > \n)
    (es (file-name-nondirectory (buffer-file-name))
!       > "local( signals = $signals sighup sigint; tmp = /tmp/" str
!       ".$pid ) {" \n
        > "catch @ e {" \n
        > "rm $tmp^* >[2]/dev/null" \n
        "throw $e" \n
--- 3392,3411 ----
    "Insert code to setup temporary file handling.  See `sh-feature'."
    (bash sh-append ksh88)
    (csh (file-name-nondirectory (buffer-file-name))
!        "set tmp = `mktemp /tmp/" str ".XXXXXX`" \n
         "onintr exit" \n _
         (and (goto-char (point-max))
            (not (bolp))
            ?\n)
         "exit:\n"
         "rm $tmp* >&/dev/null" > \n)
+   ;; The change to use mktemp here has not been tested;
+   ;; I don't know es syntax, so I had to guess.
+   ;; If you try it, or if you know es syntax and can check it,
+   ;; please tell me whether it needs any change.  --rms.
    (es (file-name-nondirectory (buffer-file-name))
!       > "local( signals = $signals sighup sigint; tmp = `mktemp /tmp/" str
!       ".XXXXXX` ) {" \n
        > "catch @ e {" \n
        > "rm $tmp^* >[2]/dev/null" \n
        "throw $e" \n
***************
*** 3411,3421 ****
        ?\} > \n)
    (ksh88 sh-modify sh
         7 "EXIT")
    (rc (file-name-nondirectory (buffer-file-name))
!       > "tmp = /tmp/" str ".$pid" \n
        "fn sigexit { rm $tmp^* >[2]/dev/null }" \n)
    (sh (file-name-nondirectory (buffer-file-name))
!       > "TMP=${TMPDIR:-/tmp}/" str ".$$" \n
        "trap \"rm $TMP* 2>/dev/null\" " ?0 \n))
  
  
--- 3415,3429 ----
        ?\} > \n)
    (ksh88 sh-modify sh
         7 "EXIT")
+   ;; The change to use mktemp here has not been tested;
+   ;; I don't know rc syntax, so I had to guess.
+   ;; If you try it, or if you know rc syntax and can check it,
+   ;; please tell me whether it needs any change.  --rms.
    (rc (file-name-nondirectory (buffer-file-name))
!       > "tmp = `mktemp /tmp/" str ".XXXXXX`" \n
        "fn sigexit { rm $tmp^* >[2]/dev/null }" \n)
    (sh (file-name-nondirectory (buffer-file-name))
!       > "TMP=`mktemp ${TMPDIR:-/tmp}/" str ".XXXXXX`" \n
        "trap \"rm $TMP* 2>/dev/null\" " ?0 \n))
  
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]