Project

General

Profile

This project is closed and read-only.

Actions

Backport #1226

closed

File.dirname should return full paths after a chdir

Backport #1226: File.dirname should return full paths after a chdir

Added by rogerdpack (Roger Pack) over 17 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:22593]

Description

=begin
with these files:

./in_root.rb:

Dir.chdir 'subdir'
require 'in_subdir'

subdir/
in_subdir.rb:
puts File.dirname(FILE)

with 1.8.7/1.9:

$ ~/installs/ruby_1_8_7_svn_installed/bin/ruby -v top.rb
ruby 1.8.7 (2009-01-14 revision 21505) [x86_64-linux]
/home/rdp/dev/file__bug/subdir/config/boot

with 1.8.6:
$ ~/installs/ruby_1_8_6_svn_installed/bin/ruby -v top.rb
ruby 1.8.6 (2009-02-25 patchlevel 355) [x86_64-linux]
./config/boot

which I believe is unexpected.
Thanks!
=end

Updated by nobu (Nobuyoshi Nakada) over 17 years ago Actions #1

=begin
Hi,

At Sun, 1 Mar 2009 00:30:37 +0900,
Roger Pack wrote in [ruby-core:22593]:

which I believe is unexpected.

It was expected. The change is a side effect of changeset
from r18197 through 18253.

--
Nobu Nakada

=end

Updated by rogerdpack (Roger Pack) over 16 years ago Actions #2

=begin

It was expected. The change is a side effect of changeset
from r18197 through 18253.

Is this behavior desired then?
=end

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #3

  • Project changed from 2 to 5
  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: PDF Atom