view move-if-change @ 98299:dc7e6d44e2a2

* fixit.texi (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing node. (Undo): Reorganize paragraphs for logical flow. Move keybinding rationale to a footnote. (Kill Errors): Remove node, due to redundancy with Erasing. (Spelling): Move discussion of flyspell to end. Note new behavior of M-$ in active region. Remove non-ispell-specific keybindings from table.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 22 Sep 2008 18:15:32 +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