aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-15 22:12:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-15 22:12:58 +0000
commit3f6e8aef372dab1ece62c93e0d048d605f7aed15 (patch)
treeffb56ec898337a9f8c4e6e32c811c6101fff7ba4
parent3fb38c6178f64c99fba7a8b3ede3f2b3382337d0 (diff)
downloadruby-3f6e8aef372dab1ece62c93e0d048d605f7aed15.tar.gz
[Bug #6598]
* tool/runruby.rb (File.realpath): return real path of expanded path. [Bug #6598] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rwxr-xr-xtool/runruby.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bebf51eae9..c98cf85cce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jun 16 07:12:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/runruby.rb (File.realpath): return real path of expanded path.
+ [Bug #6598]
+
Sat Jun 16 07:12:28 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* bootstraptest/runner.rb (main): ignore -j option for compatibility
diff --git a/tool/runruby.rb b/tool/runruby.rb
index 0165634edf..86b9327350 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -34,8 +34,7 @@ end
unless defined?(File.realpath)
def File.realpath(*args)
- Dir.chdir do
- expand_path(*args)
+ Dir.chdir(expand_path(*args)) do
Dir.pwd
end
end