view move-if-change @ 30152:f6270e5282da

(direct_output_forward_char): Give up if currently displaying a message instead of the minibuffer contents. (row_equal_p): Add parameter MOUSE_FACE_P. If set, compare the mouse_face_p flags of both rows.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 11 Jul 2000 19:57:54 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi