GNU bug report logs - #31912
Question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?

Previous Next

Package: coreutils;

Reported by: <bgv.hce <at> gmail.com>

Date: Wed, 20 Jun 2018 15:14:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#31912: closed (Question for David MacKenzie - why an mkdir
 has no silent mode (-f key) like a chmod?)
Date: Thu, 21 Jun 2018 21:24:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 21 Jun 2018 16:23:09 -0500
with message-id <f5595da2-0495-9007-c672-a9b4911c72bb <at> redhat.com>
and subject line Re: bug#31912: Question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?
has caused the debbugs.gnu.org bug report #31912,
regarding Question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
31912: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31912
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: <bgv.hce <at> gmail.com>
To: <bug-coreutils <at> gnu.org>
Subject: Question for David MacKenzie - why an mkdir has no silent mode (-f
 key) like a chmod?
Date: Wed, 20 Jun 2018 14:18:07 +0300
[Message part 3 (text/plain, inline)]
Hi,

A simple question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?

Bye.



--------------------------------------------------------------------------------
Gennady Baranov,


Technical director,
Senior engineer
IOIX UA
http://ioix.com.ua/

Head of
HCE project
http://hierarchical-cluster-engine.com/
http://nhub.news/
http://trump-today.news/
http://tagsreaper.com/

Projection and strategy adviser
IOIX
http://www.ioix.com/

Head of
ASM project
http://hierarchical-cluster-engine.com/asm-search-engine-briefly/
http://povaru.com/
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: bgv.hce <at> gmail.com, 31912-done <at> debbugs.gnu.org
Subject: Re: bug#31912: Question for David MacKenzie - why an mkdir has no
 silent mode (-f key) like a chmod?
Date: Thu, 21 Jun 2018 16:23:09 -0500
tag 31912 notabug
thanks

On 06/20/2018 06:18 AM, bgv.hce <at> gmail.com wrote:
> Hi,
> 
> A simple question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?

I'm not David (and it's been a while since he's posted anything to this 
list anyway), but thanks to the wonders of open source, you don't 
specifically need David to answer your question.

The first reason that 'mkdir -f' does not exist is historical: POSIX 
doesn't require it, because no one has ever implemented it.  Remember, 
'chmod -f' was added more than 30 years ago, and standardized by POSIX 
because it was common practice.  But without common practice, it's hard 
to argue that we would be benefitted from having 'mkdir -f'.

The second reason is that 'mkdir -p' probably already does what you 
think a potential 'mkdir -f' should do.  After all, what errors do you 
want to suppress other than a directory that already exists?  And 'mkdir 
-p' IS standardized by POSIX, again with more than 30 years of history.

But if you are really insistent on adding a new option, please describe 
what it will do that existing options cannot do, rather than just asking 
why it doesn't exist.  I'm marking the bug report as closed, but we can 
reopen it later if you have convincing arguments (and a patch is more 
convincing than just words) of why we'd want to add it.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


This bug report was last modified 6 years and 335 days ago.

Previous Next


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