view move-if-change @ 77208:2b2091de06c3

(PC-goto-end): New variable. (partial-completion-mode) <choose-completion-string-functions>: Do not go to the end of the minibuffer if PC-goto-end is non-nil. (PC-do-completion): New optional fourth argument GOTO-END. Add a doc string. Set PC-goto-end for choose-completion. (PC-lisp-complete-symbol): Pass non-nil GOTO-END arg to PC-do-completion.
author Glenn Morris <rgm@gnu.org>
date Sat, 14 Apr 2007 19:33:06 +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