From: Ryan Davis Date: 2011-04-08T14:10:27+09:00 Subject: [ruby-core:35657] Re: [Ruby 1.8 - Bug #4563][Rejected] Dir#tell broken On Apr 7, 2011, at 17:40 , Nobuyoshi Nakada wrote: > > Issue #4563 has been updated by Nobuyoshi Nakada. > > Status changed from Open to Rejected > > What's "the correct value" you think? > > ---------------------------------------- > Bug #4563: Dir#tell broken > http://redmine.ruby-lang.org/issues/4563 > > Author: Daniel Berger > Status: Rejected > Priority: Normal > Assignee: > Category: > Target version: > ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux] > > > Dir#tell is not returning the correct value after a read: > > dir = Dir.new(Dir.pwd) > p dir.tell # => 0 > dir.read > p dir.tell # => 56334832 fwiw, seems sane on osx: >> dir = Dir.new(Dir.pwd) => # >> dir.tell => 0 >> dir.read => "." >> dir.tell => 1 If I had to guess, maybe Dan is seeing the inode# ?