Mercurial > emacs
view move-if-change @ 111826:b665689b1c29
Smarter initialization for dired-use-ls-dired (Bug#7546).
* lisp/dired.el (dired-use-ls-dired): Set default to a special
"unspecified" value.
(dired-insert-directory): When called the first time, check
whether "ls --dired" succeeds and set dired-use-ls-dired (Bug#7546).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 04 Dec 2010 17:10:12 -0500 |
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