view move-if-change @ 85569:6c0aa34f6c37

(isearch-search-string): After finding the next occurrence switch to buffer isearch-buffers-current-buffer when isearch-buffers-next-buffer-function is non-nil and isearch-buffers-current-buffer is live.
author Juri Linkov <juri@jurta.org>
date Mon, 22 Oct 2007 23:44:29 +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