Mercurial > emacs
view move-if-change @ 77787:2149606de072
Hard-to-reproduce Solaris issue: rms says "I will give up on fixing
this now".
http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg01198.html
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 23 May 2007 08:54:24 +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