https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-07-06T07:57:20ZRuby Issue Tracking SystemRuby master - Bug #1733: require does not look at current directory anymore ?https://bugs.ruby-lang.org/issues/1733?journal_id=44852009-07-06T07:57:20Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="/issues/1733">[ruby-core:24153]</a> [Bug <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: require does not look at current directory anymore ? (Rejected)" href="https://bugs.ruby-lang.org/issues/1733">#1733</a>] require does not look at current directory anymore ?"<br>
on Mon, 6 Jul 2009 01:53:31 +0900, Chauk-Mean Proum <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|In ruby-1.9 trunk, the behaviour of require has changed.<br>
|Require does not look at the current directory anymore.<br>
|Is this intentional ?</p>
<p>Yes, there was a security risk.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Ruby master - Bug #1733: require does not look at current directory anymore ?https://bugs.ruby-lang.org/issues/1733?journal_id=44892009-07-06T09:45:41Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>=begin<br>
Hi,</p>
<p>At Mon, 6 Jul 2009 01:53:31 +0900,<br>
Chauk-Mean Proum wrote in <a href="/issues/1733">[ruby-core:24153]</a>:</p>
<blockquote>
<p>Replacing require 'a' with require './a' or require_relative<br>
'a' works.<br>
But this introduces incompatibility issues with code that<br>
works with ruby-1.8 and ruby-1.9.1-p129.</p>
</blockquote>
<p>In what cases do you need it in the load path?</p>
<p>Command line option -I. or environment variable RUBYLIB="."<br>
can't help you?</p>
<p>--<br>
Nobu Nakada</p>
<p>=end</p> Ruby master - Bug #1733: require does not look at current directory anymore ?https://bugs.ruby-lang.org/issues/1733?journal_id=44992009-07-06T21:04:21ZChauk-Mean (Chauk-Mean Proum)
<ul></ul><p>=begin<br>
Matz, thanks for the explanation/clarification.</p>
<p>Nobu, the RUBYLIB environment variable is a good enough solution. Thanks.</p>
<p>=end</p> Ruby master - Bug #1733: require does not look at current directory anymore ?https://bugs.ruby-lang.org/issues/1733?journal_id=45962009-07-13T21:08:47Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>=begin</p>
<p>=end</p>