From: The Higgs bozo Date: 2008-10-25T05:41:08+09:00 Subject: Re: How to tell if two paths point to the same file? Nobuyoshi Nakada wrote: > > It tells whether two files are an identical file, in other > words, same hardlinks. The doc is too terse? I think the terminology is misleading. I had thought File.identical? was a diff test, which is how the word 'identical' is normally used with respect to files. In fact: $ echo "test" > foo $ cp foo foo2 $ diff -s foo foo2 Files foo and foo2 are identical Alternatives might be same? a, b same_physical? a, b very_same? a, b selfsame? a, b The closest concept in English is 'selfsame', although it is uncommon especially in spoken English. Like two golden birds perched on the selfsame tree Intimate friends, the ego and the Self --The Upanishads -- Posted via http://www.ruby-forum.com/.