From: shyouhei@... Date: 2017-01-13T00:34:19+00:00 Subject: [ruby-core:79069] [Ruby trunk Bug#13126][Feedback] __dir__ in eval returns nil Issue #13126 has been updated by Shyouhei Urabe. Status changed from Open to Feedback Can you show us your expectation? Should what be the value for __dir__ inside of an eval? ---------------------------------------- Bug #13126: __dir__ in eval returns nil https://bugs.ruby-lang.org/issues/13126#change-62479 * Author: Artem Shein * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- ~~~ $ ruby -e 'eval "p File.dirname(__FILE__); p __dir__"' "." nil ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: