view move-if-change @ 59947:801aa21b27e9

(Inserting Text): Cleanup wording. (Moving Point): Doc PRIOR, PAGEUP, NEXT, PAGEDOWN more systematically. C-n is not error at end of buffer. (Undo): Doc C-/ like C-_. Add xrefs. (Arguments): META key may be labeled ALT. Peculiar arg meanings are explained in doc strings.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Feb 2005 11:06:56 +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