echo usage
: editentry filename
echo 'You do not have the shell variable $EDITOR set.'
echo -n 'Enter the name of an editor: '
if [ ! -x "$EDITOR" ]; then
if [ -z "$EDITOR" ]; then
echo "$F not found, please try again..."
if cmp -s $1 $1.tmp
; then
mess
="No changes to draft entry - shall I continue? "
mess
="Are you sure you want to make these changes? "
mess
="\"$YN\" not understood -- use one of:"
echo ' edit - to continue editing'
echo ' undo - to undo last edit and edit some more'