bugGNUstep - Bugs: bug #7534, [NSString...

Group
 
 

bug #7534: [NSString stringByStandardizingPath] won't expand .. (parent directory).

Submitter:  Kazunobu Kuriyama <Kazu>
Submitted:  Sat 31 Jan 2004 10:05:43 PM UTC
   
 
Category:  Base/Foundation Severity:  2 - Minor
Item Group:  Change Request Status:  Works For Me
Privacy:  Public Assigned to:  fedor
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Dec 2004 04:26:09 AM UTC, comment #1: 

I tried this with a few examples and it seems to work according to the Cocoa docs.

Adam Fedor <fedor>
Group administrator
Sat 31 Jan 2004 10:05:43 PM UTC, original submission:  

The OpenStep specification is not clear whether the expansion must be done or not, while the Cocoa one
clearly states
<quote>
In absolute paths only, resolve references to the parent directory (that is, the component "..") to the real parent directory if possible using stringByResolvingSymlinksInPath which consults the file system to resolve each potential symbolic link.
<enquote>

Perhaps, an interpretation of "in absolute paths only" varies when a given path contains ~ (user's home directory).  The method of the Mac's version supposedly expands

~usr/ObjC/../GNUstep

to

/home/usr/GNUstep

if it works on a UNIX-like system, assuming all the paths exist.  On the other hand, with GNUstep, the path is expanded to

/home/usr/ObjC/../GNUstep

Kazunobu Kuriyama <Kazu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-31 CaS Open/ClosedAnalyzed Closed
    2004-12-03 fedor StatusNone Works For Me
        Assigned toNone fedor
        Open/ClosedOpen Analyzed
    2004-01-31 Kazu Carbon-Copy- Added kazu

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code