GNU bug report logs -
#31912
Question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31912 in the body.
You can then email your comments to 31912 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#31912
; Package
coreutils
.
(Wed, 20 Jun 2018 15:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
<bgv.hce <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 20 Jun 2018 15:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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 2 (text/html, inline)]
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Thu, 21 Jun 2018 21:24:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Thu, 21 Jun 2018 21:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
<bgv.hce <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 21 Jun 2018 21:24:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 31912-done <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#31912
; Package
coreutils
.
(Thu, 21 Jun 2018 21:24:03 GMT)
Full text and
rfc822 format available.
Message #15 received at 31912-done <at> debbugs.gnu.org (full text, mbox):
On 06/20/2018 04:18 AM, bgv.hce <at> gmail.com wrote:
> A simple question for David MacKenzie - why an mkdir has no silent mode (-f key) like a chmod?
David MacKenzie left the building long ago.
It sounds like you're looking for 'mkdir -p'. If not, you can just
ignore mkdir's exit status and discard its stderr output.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 20 Jul 2018 11:24:04 GMT)
Full text and
rfc822 format available.
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.