From: Austin Ziegler Date: 2004-08-10T04:38:19+09:00 Subject: Re: Changes to the semantics of basename/dirname? 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. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca