From: nobuyoshi nakada Date: 2005-12-21T16:10:30+09:00 Subject: [ruby-dev:28088] Re: test(?-, file1, file2) なかだです。 At Wed, 21 Dec 2005 15:03:10 +0900, Tanaka Akira wrote in [ruby-dev:28087]: > というようにシンボリックリンクでも true になるようです。 > > これってどっちが意図されてるんでしょう? 昔っからそうなってますね。test -efも同じようですし、現状の動作 でいいような気もしますが。 いずれにせよ、どちらのテストも欲しい気はしますね。 ついでに、w32_io_info()はGetFileInformationByHandleしてすぐに CloseHandleするように変更されたようですが、これで得られる FileIndexってオープンしてる間しか保証されないという話じゃありま せんでしたっけ。 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/by_handle_file_information_str.asp This value is useful only while the file is open by at least one process. If no processes have it open, the index may change the next time the file is opened. -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦