diff options
author | John Ankarström <john@ankarstrom.se> | 2020-11-24 21:00:29 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-11-24 21:04:12 +0100 |
commit | 0d0d8d994603a740446085c6ba096642acaf50d4 (patch) | |
tree | b643e8b5f95c95d681247bd90368eb4b29298005 /ep | |
parent | a5bfba21215bf9d8e63292b4c75985894e169f4c (diff) | |
download | xutil-0d0d8d994603a740446085c6ba096642acaf50d4.tar.gz |
ep: Use mktemp instead of $RANDOM
$RANDOM is (unfortunately) not POSIX, and mktemp is safer
permission-wise.
Diffstat (limited to 'ep')
-rw-r--r-- | ep | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ # ep -- edit pipe -tmp=/tmp/ep.$RANDOM +tmp=`mktemp /tmp/ep.XXXXXX` cat > $tmp ${EDITOR:-vi} $tmp < /dev/tty > /dev/tty cat $tmp |