GNU bug report logs - #8749
mkdir: feature request --reference

Previous Next

Package: coreutils;

Reported by: Shaun Jackman <sjackman <at> bcgsc.ca>

Date: Fri, 27 May 2011 23:32:03 UTC

Severity: wishlist

Full log


Message #20 received at 8749 <at> debbugs.gnu.org (full text, mbox):

From: Shaun Jackman <sjackman <at> bcgsc.ca>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: "8749 <at> debbugs.gnu.org" <8749 <at> debbugs.gnu.org>, Bob Proulx <bob <at> proulx.com>
Subject: Re: bug#8749: mkdir: feature request --reference
Date: Tue, 31 May 2011 11:12:39 -0700
Hi Paul,

My use case is working in a directory shared amongst a group of users.
My umask is 022. I run
mkdir -pm775 project/subproject
and I'd like both project and project/subproject to be group-writable.

Cheers,
Shaun

On Mon, 2011-05-30 at 22:04 -0700, Paul Eggert wrote:
> On 05/30/11 10:29, Shaun Jackman wrote:
> > When using mkdir
> > -pm, the specified mode is applied only to the final directory and not
> > the parent directories
> 
> That behavior is required by POSIX; see
> <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html>.
> 
> Perhaps an argument could be made for a new option, which would
> have the behavior you'd prefer; it'd be nice to see use cases.





This bug report was last modified 14 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.