Mercurial > emacs
view move-if-change @ 80401:52454b9e8627
* url-auth.el (url-digest-auth): Changed an if so that the
interaction between the PROMPT and OVERWRITE arguments can no
longer result in the user being queried twice for the same login
and password information.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 31 Mar 2008 22:02:08 +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