diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-21 21:43:53 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 21:43:53 +0200 |
commit | 30513b181895cfa1a9035514aabf49c43c5bf0ea (patch) | |
tree | 96bd9f1c00dc0cb7d095a95cb3985215c83e2915 /etc | |
parent | de3ef325f73885003d05d3937293661be3c84b21 (diff) | |
download | xutil-30513b181895cfa1a9035514aabf49c43c5bf0ea.tar.gz |
ep: Ensure temporary file is removed
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/ep | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |