view move-if-change @ 108767:471d9557d537

rcirc update. * lisp/net/rcirc.el (rcirc-server-alist): Add :pass. (rcirc-default-user-name): Change to "user". (rcirc-default-full-name): Change to "unknown". (rcirc-user-name-history): Add variable. (rcirc): When prompting for connection paramaters, also prompt for username and password. (rcirc-connect): Take a PASS argument. If PASS is non-nil, send value to server when connecting.
author Glenn Morris <rgm@gnu.org>
date Mon, 24 May 2010 20:35:31 -0700
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