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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Kazunobu Kuriyama <Kazu>
Submitted on:  Sat 31 Jan 2004 10:05:43 PM UTC  
 
Category: Base/FoundationSeverity: 2 - Minor
Item Group: Change RequestStatus: Works For Me
Privacy: PublicAssigned to: Adam Fedor <fedor>
Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 31 Jan 2009 07:17:35 AM UTCCaSOpen/ClosedAnalyzed=>Closed
    Fri 03 Dec 2004 04:26:09 AM UTCfedorStatusNone=>Works For Me
      Assigned toNone=>fedor
      Open/ClosedOpen=>Analyzed
    Sat 31 Jan 2004 10:06:51 PM UTCKazuCarbon-Copy-=>Added kazu

    Back to the top


    Powered by Savane 3.1-cleanup1