Project

General

Profile

Actions

Bug #7729

closed

__dir__ returns a absolute dir path

Added by authorNari (Narihiro Nakamura) about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 2.0.0dev (2013-01-23 trunk 38552) [x86_64-linux]
Backport:
[ruby-core:51578]

Description

Hi.

dir returns a absolute dir path. It seems like a bug.

I've attached a patch.
mame-san, can I commit it to 2.0.0?

This issue is reported here: https://github.com/ruby/ruby/commit/805b08f2925f5ceec67bf472e76e869bbddc8c39#commitcomment-2474426

Thanks!


Files

__dir__to_relative.rb (1.34 KB) __dir__to_relative.rb authorNari (Narihiro Nakamura), 01/23/2013 01:54 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #3346: __DIR__ revistedClosedyhara (Yutaka HARA)05/26/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0