view move-if-change @ 56548:18be5704dc1b

(move_it_in_display_line_to): If overflow-newline-into-fringe is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV if target position is at end of display line but char is not a newline.
author Kim F. Storm <storm@cua.dk>
date Sun, 25 Jul 2004 22:15:03 +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