From: Daniel Berger Date: 2005-09-14T02:11:28+09:00 Subject: Re: File.split edge cases Yukihiro Matsumoto wrote: > Hi, > > In message "Re: File.split edge cases" > on Wed, 14 Sep 2005 00:22:06 +0900, Daniel Berger writes: > > |> See [ruby-talk:78960]. > | > | From what I can gather from my research, the current behavior is not > |POSIX compliant then. I had difficulty finding documentation regarding > |POSIX, paths, split and root directories, but what I did find leads me > |to believe that in the case of root directories, the root directory > |should be returned as the first element, and the second element should > |be empty. > > Then show me your reasoning. I wish you are correct. I would argue that this should always be true: path == File.split(File.join(path)) Regards, Dan