view move-if-change @ 102341:c5d3b70a7002

(Rmail): Fix some typos. (Rmail Motion): - M-s searches from the end of messages. (Rmail Deletion): Minor clarification. Fix numeric argument description. (Rmail Inbox): Fix default inbox description. Mention `mbox' by name. newmail and RMAILOSE files need not be in home-directory. (Rmail Files): Mention I/O menus are unselectable if no files match. Mention `MAIL' env-var.
author Glenn Morris <rgm@gnu.org>
date Sun, 01 Mar 2009 01:00:47 +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