From: Hal Fulton Date: 2004-04-30T09:06:57+09:00 Subject: Re: File.expand_path(__FILE__) Simon Strandgaard wrote: > No bug. > > > At the last line "File.expand_path(__FILE__)" is being invoked. > Currend dir = "/Users/ryan/tmp/" > File name = "tmp/demo-problem.rb" > > When these are being concatenated it outputs > absolut path = "/Users/ryan/tmp/tmp/demo-problem.rb" > > > concat is working ok. expand_path doesn't simply concatenate. If it did, we could simply do dir + name. Taking a valid relative pathname and returning an invalid absolute pathname is not useful, certainly not a feature. If not a bug, at least an anomaly. Hal