[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AS_MKDIR_P bug/patch
From: |
Eric Sunshine |
Subject: |
Re: AS_MKDIR_P bug/patch |
Date: |
Fri, 26 Sep 2003 07:36:30 -0400 |
On Fri, 26 Sep 2003 13:11:11 +0200, Andreas Schwab wrote:
> Paul Eggert <address@hidden> 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