From: Gary Wright Date: 2008-01-03T02:48:44+09:00 Subject: Re: Pathname#relative_path_from questions On Jan 2, 2008, at 12:38 PM, Daniel Berger wrote: > My second question is technical. Should the result be "./a"? I mean, > if we assume a common root, the a and b files are in the same > directory, not the parent directory, correct? Yes, but you are looking for the relative path from path2 ("b") to path1 ("a") not for the relative path from the common root to path1. Two different questions, two different answers. Think about how you would do this in the shell: $ cd b $ cd ../a # this gets me to a from b Gary Wright