On Wed, 2005-01-12 at 03:11 -0800, Jeremy Huddleston wrote: > Ok, I'm sure someone has some code for this lying around, so I really > don't want to reinvent the wheel when I've got so much else to do... > so... > > Does anyone know a way to find the relative path between two absolute > paths... for instance, I want something which behaves like: > > # find_relative_path /usr/include/asm-sparc /usr/include/asm > ../asm-sparc > > If it's a bash function, that would be great, but relying on things in > 'emerge system' would be alright.
How about written in PHP? *hide* -- Regards, Lisa Seelye GPG: 09CF5 2D6B8 2B72B 997A7 601BC B46B5 561E4 96FC5 http://www.thedoh.com/~lisa/site
signature.asc
Description: This is a digitally signed message part
