On 01/10/2012 09:53 PM, Mike Frysinger wrote: > On Tuesday 10 January 2012 15:15:57 Mike Frysinger wrote: >> as does these: >> realpath --relative-to=/ /usr >> realpath --relative-to=/ /usr/ >> which is to say, they show: >> .. > > sorry, typo here ... these actually output: > ../usr > > i guess that should be just "usr". > -mike
Agreed. python concurs too: >>> os.path.relpath(start='/usr',path='/') '..' >>> os.path.relpath(start='/',path='/usr') 'usr' Essentially in these edge cases the relative paths printed are valid, but not canonicalised. I'll fix it up. cheers, Pádraig.
