From: Daniel Carrera Date: 2003-04-29T01:04:17+09:00 Subject: Re: File#split bug? You should have typed "~/jfn", not "~jfn": dcarrera ~ $ touch jfn dcarrera ~ $ ls ~jfn ~jfn: No such file or directory dcarrera ~ $ ls ~/jfn /home3/dcarrera/jfn dcarrera ~ $ irb >> File.split("~/jfn") => ["~", "jfn"] >> File.join(File.split("~/jfn")) => "~/jfn" And /home/dcarrera/jfn == ~/jfn Hope that helps, Daniel. On Tue, Apr 29, 2003 at 12:57:48AM +0900, Jim Freeze wrote: > Is this a bug in File#split? > > irb(main):013:0> File.split("/home/jfn") > => ["/home", "jfn"] > irb(main):014:0> File.split("~jfn") > => [".", "~jfn"] > irb(main):015:0> File.join(File.split("~jfn")) > => "./~jfn" > > > Notice that /home/jfn != ./~jfn > > > -- > Jim Freeze > ---------- > For a man to truly understand rejection, he must first be ignored by a > cat. > -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137