[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir -m and -p interaction
From: |
Paul T. Darga |
Subject: |
Re: mkdir -m and -p interaction |
Date: |
Tue, 30 Jan 2007 13:05:26 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Jan 30, 2007 at 09:51:38AM -0800, Paul Eggert wrote:
> > When running mkdir with -m and -p options, the specified mode is not
> > honored for parent directories. This is consistent with the
> > documentation, but it strikes me as a bit bogus. Is there a reason
> > for this behavior?
>
> It's the tradition, and POSIX requires it. See
> <http://www.opengroup.org/susv3/utilities/mkdir.html>.
Of course. Should have looked there before sending mail over the
list. Thanks for your quick response.
I still think that the behavior is nonintuitive, and that some sort of
GNU --extra-flag might be in order, but cooking up a patch for that
would be far more work than simply chmod-ing after mkdir-ing.
Thanks again,
Paul
--
Paul T. Darga - address@hidden - http://www.eecs.umich.edu/~pdarga/
"When I gave food to the poor, they called me a saint. When I asked
why the poor were hungry, they called me a communist."
-- Dom Helder Camara, Brazilian Bishop, Nobel Peace Prize nominee