view move-if-change @ 37846:d8b197c6f26d

Explain M-! output can go in echo area. Default for shell-completion-fignore is nil. C-c C-a is actually comint-bol-or-process-mark. shell-set-directory-error-hook does not really exist. comint-dynamic-complete-variable does not really exist. Terminal buffer is *terminal*, not *term*. Other minor changes.
author Richard M. Stallman <rms@gnu.org>
date Sun, 20 May 2001 17:25:18 +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