From: Robert Klemme Date: 2004-08-10T04:51:17+09:00 Subject: Re: Changes to the semantics of basename/dirname? "Austin Ziegler" schrieb im Newsbeitrag news:9e7db91104080912383403be73@mail.gmail.com... > On Tue, 10 Aug 2004 04:21:17 +0900, Robert Klemme wrote: > > "Austin Ziegler" schrieb im Newsbeitrag > > news:9e7db91104080907595ed3fe0b@mail.gmail.com... > > > The first problem is that basename, dirname, and expand_path convert > > > \\ to /. This shouldn't be problematic in the general case (where > > > the path is then used in a Ruby command), but it would be useful to > > > indicate that conversion should not be done. > > What Ruby are you using? AFAIK windows compiled Ruby handles that according > > to Win conventions. Cygwin ruby handles it according to *nix style. But > > then there is cygpath... > > irb(main):003:0> [RUBY_PLATFORM, RUBY_VERSION, RUBY_RELEASE_DATE].join(" ") > => "i386-mswin32 1.8.2 2004-07-29" > > Ruby converts \ to / and doesn't handle UNC names well at all. Darn! I was sure my old 1.6.8 did at least handle "\"... Maybe it has changed or my memory fooled me. Sorry for the noise. Regards robert