view move-if-change @ 58602:2864ad32d866

(edebug-set-global-break-condition): Use `read-expression-history'. Set initial contents only if `edebug-global-break-condition' is non-nil. Set histpos to 1 if initial contents is equal to the last history element. (edebug-set-conditional-breakpoint): Instead of temporarily prepending the current condition to the history, set initial contents to the current condition. Set histpos to 1 if initial contents is equal to the last history element.
author Juri Linkov <juri@jurta.org>
date Sun, 28 Nov 2004 07:56:25 +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