Mercurial > emacs
view move-if-change @ 102888:377ae1928153
(msdos-last-help-message): New defvar.
(msdos-show-help): Use it to avoid saving the last message if it was also
a help message (Bug#2895).
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 08 Apr 2009 13:49:53 +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