projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce85d38
)
* admin/emacs-shell-lib: Backport to Bash 4.4 or older.
author
Stefan Kangas
<stefankangas@gmail.com>
Thu, 20 Jun 2024 21:12:31 +0000
(23:12 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Thu, 20 Jun 2024 21:12:31 +0000
(23:12 +0200)
admin/emacs-shell-lib
patch
|
blob
|
history
diff --git
a/admin/emacs-shell-lib
b/admin/emacs-shell-lib
index 1c4d895fdb4c365d62556c289348e7aeb0ddd2af..e639a4740a19e31fb9e20f2a8cfd2f3034091c91 100644
(file)
--- a/
admin/emacs-shell-lib
+++ b/
admin/emacs-shell-lib
@@
-49,6
+49,9
@@
emacs_tempfiles=()
emacs_tempfiles_cleanup ()
{
+ # This is needed on Bash 4.4 or older.
+ [ ${#emacs_tempfiles[@]} -eq 0 ] && return
+
for file in ${emacs_tempfiles[@]}; do
rm -f "${file}" 2> /dev/null
done