View Issue Details

IDProjectCategoryView StatusLast Update
00008431003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:54
Reportersebor Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameMartin sebor
OrganizationCisco Systems, Inc.
User Reference
Sectionmkdir
Page Number2964
Line Number98169, 98170
Interp Status---
Final Accepted TextSee 0000843:0002264.
Summary0000843: mkdir -p exit status inaccurate
Descriptionmkdir specifies that the exit values shall be zero when:

    All the specified directories were created successfully or the -p option was specified and all the specified directories now exist.

The part "all the specified directories now exist" suggests that the directories are guaranteed to exist at the time the command exits (i.e., the word "now" means "immediately after mkdir exits"), even though it may not be the case when another process executing concurrently with mkdir removes one or more of the the directories just after mkdir has verified their existence but before it has exited.
Desired ActionReplace the sentence:

    All the specified directories were created successfully or the -p option was specified and all the specified directories now exist.

with:

    All the specified directories were created successfully or the -p option was specified and all the specified directories were either found to already exist or created successfully.
Tagstc2-2008

Activities

Don Cragun

2014-06-12 16:00

manager   bugnote:0002264

Last edited: 2014-06-12 16:02

On page 2964 lines 98169-98170, change:

All the specified directories were created successfully or the -p option was specified and all the specified directories now exist.


to:

All the specified directories were created successfully, or the -p option was specified and all the specified directories either already existed or were created successfully.


Issue History

Date Modified Username Field Change
2014-06-02 18:52 sebor New Issue
2014-06-02 18:52 sebor Status New => Under Review
2014-06-02 18:52 sebor Assigned To => ajosey
2014-06-02 18:52 sebor Name => Martin sebor
2014-06-02 18:52 sebor Organization => Cisco Systems, Inc.
2014-06-02 18:52 sebor Section => mkdir
2014-06-02 18:52 sebor Page Number => 2964
2014-06-02 18:52 sebor Line Number => 98169, 98170
2014-06-12 16:00 Don Cragun Note Added: 0002264
2014-06-12 16:02 Don Cragun Interp Status => ---
2014-06-12 16:02 Don Cragun Final Accepted Text => See 0000843:0002264.
2014-06-12 16:02 Don Cragun Status Under Review => Resolved
2014-06-12 16:02 Don Cragun Resolution Open => Accepted As Marked
2014-06-12 16:02 Don Cragun Tag Attached: tc2-2008
2014-06-12 16:02 Don Cragun Note Edited: 0002264
2019-06-10 08:54 agadmin Status Resolved => Closed