#!/bin/sh

set -e
cp /dev/null /tmp/ed.$$
${VISUAL:-${EDITOR:-/usr/bin/vi}} /tmp/ed.$$ 1>&0 2>&0
cat /tmp/ed.$$
rm /tmp/ed.$$
exit 0
