about summary refs log tree commit diff
path: root/bins
diff options
context:
space:
mode:
Diffstat (limited to 'bins')
-rwxr-xr-xbins/bin/edit-file-in-emacs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bins/bin/edit-file-in-emacs.sh b/bins/bin/edit-file-in-emacs.sh
index 0661da7335fe..650ccac12011 100755
--- a/bins/bin/edit-file-in-emacs.sh
+++ b/bins/bin/edit-file-in-emacs.sh
@@ -1,7 +1,7 @@
 #/usr/bin/env zsh
 
-file=$(mktemp -t "$USER-"XXXXXXXX.emacs-pager) || exit 127
-trap 'rm -f "$file"' EXIT
-trap 'exit 255' HUP INT QUIT TERM
+file=$(mktemp -t "$USER-XXXXXXXX.emacs-pager") || exit 127
+trap "rm -f $file" EXIT
+trap "exit 255" HUP INT QUIT TERM
 cat "$@" >"$file"
 emacsclient -e "(wc/edit-file-in-emacs \"$file\")"