[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18324] Re: NEW Command: absolute_path() --

From: "Luis Lavena" <luislavena@...>
Date: 2008-08-18 14:36:27 UTC
List: ruby-core #18324
On Mon, Aug 18, 2008 at 2:56 PM, michael greenly <mgreenly@gmail.com> wrote:
> Are you sure you didn't mean to use "~/oracle/bin"
>

The problem is that File.expand_path asumes if no "~" was provided,
current directory (Dir.pwd) is starting point:

irb(main):007:0> Dir.pwd
=> "D:/Users/Luis"
irb(main):008:0> File.expand_path("~")
=> "D:/Users/Luis"
irb(main):009:0> File.expand_path(".")
=> "D:/Users/Luis"
irb(main):010:0> File.expand_path("..")
=> "D:/Users"
irb(main):011:0> File.expand_path("./~oracle")
=> "D:/Users/Luis/~oracle"
irb(main):012:0> File.expand_path("~oracle")
=> "~oracle"

In the last line you can see the problem... it doesn't expand the path
if ~ is found in as part of the path to expand.

-- 
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams

In This Thread