From: Gennady Date: 2003-04-29T01:10:19+09:00 Subject: Re: File#split bug? It seems like '~' here is not treated as a special symbol. To have it treated like that try File.split(File.expand_path("~jfn")) Gennady. ----- Original Message ----- From: "Jim Freeze" To: "ruby-talk ML" Sent: Monday, April 28, 2003 8:57 AM Subject: File#split bug? > 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. > >