Project

General

Profile

Actions

Bug #1620

closed

[PATCH] Kernel.require Normalises Paths in 1.9

Added by runpaint (Run Paint Run Run) about 16 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
[ruby-core:23833]

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
    • to an absolute path, so that ``require 'a';require
    • './a''' will load a.rb twice.
    • $". A feature will not be loaded if its name already
    • appears in $". The file name is converted to an absolute
    • path, so ``require 'a'; require './a''' will not load
    • a.rb twice.
    • require "my-library.rb"
      
    • require "db-driver"
      

=end

Actions #1

Updated by matz (Yukihiro Matsumoto) almost 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23724.
=end

Actions

Also available in: Atom PDF

Like0
Like0