Actions
Bug #1620
closed[PATCH] Kernel.require Normalises Paths in 1.9
Bug #1620:
[PATCH] Kernel.require Normalises Paths in 1.9
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
Description
=begin
diff --git a/load.c b/load.c
index 5f9d4f2..c87775d 100644
--- a/load.c
+++ b/load.c
@@ -416,10 +416,10 @@ load_unlock(const char *ftptr, int done)
- the current platform, Ruby loads the shared library as a Ruby
- extension. Otherwise, Ruby tries adding
.rb'',.so'', and so on - to the name. The name of the loaded feature is added to the array in
-
-
$". A feature will not be loaded if it's name already
-
-
- appears in
$". However, the file name is not converted
- appears in
-
- to an absolute path, so that ``
require 'a';require
- to an absolute path, so that ``
-
- './a''' will load
a.rbtwice.
- './a''' will load
-
-
$". A feature will not be loaded if its name already
-
-
- appears in
$". The file name is converted to an absolute
- appears in
-
- path, so ``
require 'a'; require './a''' will not load
- path, so ``
-
-
a.rbtwice. -
require "my-library.rb" -
require "db-driver"
-
=end
Actions