view move-if-change @ 57563:94a1ed353a39

(ibuffer-default-display-maybe-show-predicates): New customizable variable; whether to display buffers that match `ibuffer-maybe-show-predicates' by default. (ibuffer-maybe-show-predicates): Mention it in docstring. (ibuffer-display-maybe-show-predicates): New variable. (ibuffer-update): Prefix arg now toggles whether buffers that match `ibuffer-maybe-show-predicates' should be displayed. (ibuffer-mode): Set `ibuffer-display-maybe-show-predicates' locally to heed `ibuffer-default-display-maybe-show-predicates'. (ibuffer-redisplay-engine): Rename optional second arg to `ignore'.
author John Paul Wallington <jpw@pobox.com>
date Sun, 17 Oct 2004 18:07:41 +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