aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-24 21:00:19 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-24 21:00:19 +0100
commita5bfba21215bf9d8e63292b4c75985894e169f4c (patch)
treebd296bdc68626bedd03a12d32a1aaf53b512f15d
parent7ead7728a69b3252ede19a00e958f6a2b38845b9 (diff)
downloadxutil-a5bfba21215bf9d8e63292b4c75985894e169f4c.tar.gz
ord: Use ep to edit order
-rwxr-xr-xord6
1 files changed, 1 insertions, 5 deletions
diff --git a/ord b/ord
index 2d0687f..cea4907 100755
--- a/ord
+++ b/ord
@@ -53,8 +53,4 @@ fromtext() {
}
# Edit order
-tmp=/tmp/ord.$RANDOM
-totext "$@" > $tmp
-${EDITOR:-vi} $tmp
-fromtext < $tmp
-rm $tmp
+totext "$@" | ep | fromtext