view move-if-change @ 106766:89ca5bbe8e71

* dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must also be true before we can return early (bug #5339).
author Jan D. <jan.h.d@swipnet.se>
date Fri, 08 Jan 2010 12:43:09 +0100
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