view move-if-change @ 70076:10e0b8ee9993

(partial-completion-mode): Use 'choose-completion-string-functions to make sure that choose-completion fills the minibuffer properly. (PC-old-read-file-name-internal): Remove. (PC-read-include-file-name-internal): Remove. Turn it into an advice of read-file-name-internal. (partial-completion-mode): Enable/disable this advice.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 Apr 2006 17:33:33 +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