view move-if-change @ 88072:948a005afe18

* net/tramp.el (tramp-methods): Use "-H" option for "sudo". Suggested by Trent W. Buck <trentbuck@gmail.com>. Make ("%h") a single element in "plinkx". (tramp-handle-shell-command): Reuse "*Async Shell Command*" or "*Shell Command Output*" buffers. Check, whether there is already an asynchronous process running. Display always the buffer of the asynchronous process. (tramp-compute-multi-hops): Adapt error message.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 29 Jan 2008 21:14:04 +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