On Fri, 26 Sep 2003 13:11:11 +0200, Andreas Schwab wrote: > Paul Eggert <eggert@xxxxxxxxxxx> writes: > > @@ -690,6 +690,7 @@ m4_defun([_AS_MKDIR_P_PREPARE], > > [if mkdir -p . 2>/dev/null; then > > as_mkdir_p=: > > else > > + rm -fr ./-p > IMHO using rmdir here has less change of destoying a pre-existing > directory (and if it's created by mkdir it should be empty anyway). Indeed, the following would probably be more appropriate: test -d ./-p && rmdir ./-p -- ES