Actions
Bug #8525
closedError? in pathname :: Pathname.new(`pwd`.chomp).basename.realpath
Description
[code]
Dir.chdir '/tmp'
p = Pathname.new(pwd
.chomp).basename.realpath
Errno::ENOENT: No such file or directory - /tmp/tmp
from (irb):17:in realpath' from (irb):17:in
realpath'
from (irb):17
from /usr/bin/irb:12:in `'
[/code]
As I got p must be '/tmp'. Am I wrong?
Actions
Like0
Like0