View Issue Details

IDProjectCategoryView StatusLast Update
00006531003.1(2008)/Issue 7Base Definitions and Headerspublic2019-06-10 08:55
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeClarification Requested
Status ClosedResolutionAccepted As Marked 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Section3.40
Page Number39
Line Number1274
Interp Status---
Final Accepted TextSee 0000653:0001480
Summary0000653: incomplete definition of basename
DescriptionThe definition of basename in XBD 3.40 is incomplete, as it does
not take account of pathnames consisting of all slashes. This is
because such pathnames do not contain any filenames (according to
the definition of filename).

The suggested change below matches the behaviour of basename()
described in 0000612.
Desired ActionChange:

    The final, or only, filename in a pathname.

to:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters, the basename of the pathname is '/' if the
    pathname does not contain exactly two <slash> characters and is
    either '/' or "//" if the pathname contains exactly two <slash>
    characters.
Tagstc2-2008

Relationships

related to 0000612 Closedajosey dirname of "usr/" or "/" are not clear 

Activities

user27

2013-02-06 18:36

  bugnote:0001456

I'd suggest wording it this way:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters: either "/" or "//" if the pathname consists of
    exactly two <slash> characters, and "/" otherwise.

nick

2013-02-28 17:06

manager   bugnote:0001480

Change:

    The final, or only, filename in a pathname.

to:

    For pathnames containing at least one filename: the final, or
    only, filename in the pathname. For pathnames consisting only of
    <slash> characters: either "/" or "//" if the pathname consists of
    exactly two <slash> characters, and "/" otherwise.

Issue History

Date Modified Username Field Change
2013-02-06 12:38 geoffclare New Issue
2013-02-06 12:38 geoffclare Status New => Under Review
2013-02-06 12:38 geoffclare Assigned To => ajosey
2013-02-06 12:38 geoffclare Name => Geoff Clare
2013-02-06 12:38 geoffclare Organization => The Open Group
2013-02-06 12:38 geoffclare Section => 3.40
2013-02-06 12:38 geoffclare Page Number => 39
2013-02-06 12:38 geoffclare Line Number => 1274
2013-02-06 12:38 geoffclare Interp Status => ---
2013-02-06 12:38 geoffclare Relationship added related to 0000612
2013-02-06 18:36 user27 Note Added: 0001456
2013-02-28 17:06 nick Note Added: 0001480
2013-02-28 17:06 nick Status Under Review => Resolution Proposed
2013-02-28 17:06 nick Resolution Open => Accepted As Marked
2013-02-28 17:06 nick Tag Attached: tc2-2008
2013-02-28 17:06 nick Final Accepted Text => See 0000653:0001480
2013-02-28 17:07 nick Status Resolution Proposed => Resolved
2019-06-10 08:55 agadmin Status Resolved => Closed