Bugs item #2858, was opened at 2005-11-20 16:35
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2858&group_id=426

Category: Core
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Stefan Lang (langi)
Assigned to: Nobody (None)
Summary: testing for hardlink with "test(?-, ...)" flawed on Windows

Initial Comment:
Tested on Windows XP, NTFS, Ruby 1.8.2 (OneClick Installer):

  $ ri test

states:

  "?-  | boolean | True if file1 is a hard link to file2"

On the specified platform

  test(?-, "file1", "file2")

returns true for any "file1" and "file2" that exist, not only
for hardlinks. It works as expected on my Linux system.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2858&group_id=426