view move-if-change @ 39901:50f67a72ea1b

2001-10-13 Michael Kifer <kifer@cs.sunysb.edu> * viper-ex.el (ex-edit): make checks for modified buffer/file. (viper-get-ex-address-subr): more precise addr for the $ marker * viper-cmd.el: Fixed indentation. * viper.texi: Clarified that viper won't expand special symbols in search patterns.
author Michael Kifer <kifer@cs.stonybrook.edu>
date Sat, 13 Oct 2001 21:38:19 +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