emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31912: closed (Question for David MacKenzie - why


From: GNU bug Tracking System
Subject: [debbugs-tracker] 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

Your message dated Thu, 21 Jun 2018 16:23:09 -0500
with message-id <address@hidden>
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
address@hidden)


-- 
31912: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31912
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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
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/

--- End Message ---
--- Begin Message --- 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 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
tag 31912 notabug
thanks

On 06/20/2018 06:18 AM, address@hidden 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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]