Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to get a true canonical path

by jepri (Parson)
on Jun 09, 2004 at 14:28 UTC ( #362739=note: print w/replies, xml ) Need Help??


in reply to How to get a true canonical path

This is easy to do if you just want to handle ".." in paths. Not too much code is needed - usually just let the shell resolve the path. But if you want to handle symlinks in Unix, then you are in a world of confusion.

If you want to demand a GNU environment, there is a GLIBC function called something like "cannonical_path" which will do all the work for you. Otherwise... ouch.

___________________
Jeremy
I didn't believe in evil until I dated it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://362739]
help
Chatterbox?
[ambrus]: Corion: um, that was me (duh)
[ambrus]: I just can't get you two to cooperate directly because schmorp doesn't want to be in the chatterbox
[ambrus]: maybe you should join his irc channel or something, unless that causes a flame blowup

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2016-12-09 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (151 votes). Check out past polls.