aboutsummaryrefslogtreecommitdiff
path: root/etc/ep
blob: 9ee3e691764671808b8f44bf366bd7d923d693db (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# 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