[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby 1.8.7, Cygwin and File.expand_path

Erik Veenstra

6/2/2008 12:05:00 PM

File.expand_path() in Ruby 1.8.7 doesn't work like
File.expand_path() in Ruby 1.8.6-p114 on Cygwin on Windows XP
Pro SP 2 (build 2600).

Bug or feature?...

gegroet,
Erik V. - http://www.erikve...

----------------------------------------------------------------

# Ruby 1.8.6-p114

$ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-cygwin]

$ ruby -e 'p File.expand_path("a")'
"/cygdrive/l/a"

$ ruby -e 'p File.expand_path("a", "b")'
"/cygdrive/l/b/a"

----------------------------------------------------------------

# Ruby 1.8.7

$ ruby -v
ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-cygwin]

$ ruby -e 'p File.expand_path("a")'
"" # <--- Wrong

$ ruby -e 'p File.expand_path("a", "b")'
Uses 100% CPU # <--- Very Wrong

----------------------------------------------------------------

1 Answer

Nobuyoshi Nakada

6/3/2008 7:28:00 AM

0

Hi,

At Mon, 2 Jun 2008 21:04:36 +0900,
Erik Veenstra wrote in [ruby-talk:303736]:
> File.expand_path() in Ruby 1.8.7 doesn't work like
> File.expand_path() in Ruby 1.8.6-p114 on Cygwin on Windows XP
> Pro SP 2 (build 2600).
>
> Bug or feature?...

Bug. I think I fixed it in the repository now, thank you.

--
Nobu Nakada