view move-if-change @ 4406:5998e37dc35e

Use bignums if necessary for file size in #'file-attributes. 2008-01-19 Aidan Kehoe <kehoea@parhasard.net> * dired.c (Ffile_attributes): If bignums are available, use them for the file size when necessary. If they are not, be clearer about the check for whether the file size can fit in a Lisp integer.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 19 Jan 2008 14:34:19 +0100
parents 376386a54a3c
children
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