view move-if-change @ 53483:6535ab5797c7

Various small changes in addition to the following. (What Is a Function): `functionp' returns nil for macros. Clarify behavior of this and following functions for symbol arguments. (Function Documentation): Add `\' in front of (fn @var{arglist}) and explain why. (Defining Functions): Mention DOCSTRING argument to `defalias'. Add anchor. (Mapping Functions): Add anchor. Unquote nil in mapcar* example.
author Luc Teirlinck <teirllm@auburn.edu>
date Sat, 03 Jan 2004 16:52:43 +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