view move-if-change @ 67385:15ed3778b098

(cua--select-keymaps): Enable repeat keymap if cua--prefix-override-timer equals 'shift. (cua--shift-control-prefix): New function; emulate "type prefix key twice" functionality to handle shifted prefix key override. (cua--shift-control-c-prefix, cua--shift-control-x-prefix): New commands. (cua--init-keymaps): Bind them to S-C-c and S-C-x.
author Kim F. Storm <storm@cua.dk>
date Thu, 08 Dec 2005 14:12:12 +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