From 30513b181895cfa1a9035514aabf49c43c5bf0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 21 Jul 2021 21:43:53 +0200 Subject: ep: Ensure temporary file is removed --- etc/ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/ep b/etc/ep index 4be6317..9ee3e69 100755 --- a/etc/ep +++ b/etc/ep @@ -3,7 +3,7 @@ # ep -- edit pipe tmp=`mktemp /tmp/ep.XXXXXX` +trap "rm $tmp; trap -" INT QUIT EXIT cat > $tmp ${EDITOR:-vi} $tmp < /dev/tty > /dev/tty cat $tmp -rm $tmp -- cgit v1.2.3