view move-if-change @ 42676:24e0ac83a078

(dired-shell-stuff-it): Substitute for * or ? only when they are surrounded by whitespace. Use dired-mark-separator when adding one file name to a command. (dired-do-shell-command): Verify that * is surrounded by whitespace. Ask for confirmation if * or ? is not surrounded by whitespace. (dired-bunch-files): Re-reverse the partial file list when it is used.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jan 2002 20:14:25 +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