view move-if-change @ 95228:451f4028c096

* minibuffer.el (completion-boundaries): Change calling convention, so `string' has the same semantics as in try-completion and all-completions. (completion-table-with-context, completion--embedded-envvar-table) (completion--file-name-table, completion-pcm--find-all-completions): Adjust code accordingly. * vc-bzr.el (vc-bzr-annotate-time): Reduce memory allocation. (vc-bzr-revision-completion-table): Handle `boundaries' argument.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 23 May 2008 01:58:15 +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