Re: Comparing file names

2008-08-26 Fir de Conversatie Matthew Winn
On Mon, 25 Aug 2008 16:39:12 -0400, "James Vega" <[EMAIL PROTECTED]> wrote: > On Mon, Aug 25, 2008 at 4:21 PM, Tony Mechelynck > <[EMAIL PROTECTED]> wrote: > > > > The question is not to determine which other files, if any, are > > hardlinked to a specific file (which might require scanning all >

Re: Comparing file names

2008-08-25 Fir de Conversatie James Vega
On Mon, Aug 25, 2008 at 4:21 PM, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > > On 25/08/08 21:35, James Vega wrote: >> On Mon, Aug 25, 2008 at 3:10 PM, Tony Mechelynck > [...] >>> - On systems where hard links are possible (including not only >>> Unix/Linux, but also, IIUC, NTFS filesystems on Wi

Re: Comparing file names

2008-08-25 Fir de Conversatie Tony Mechelynck
On 25/08/08 21:35, James Vega wrote: > On Mon, Aug 25, 2008 at 3:10 PM, Tony Mechelynck [...] >> - On systems where hard links are possible (including not only >> Unix/Linux, but also, IIUC, NTFS filesystems on Windows NT and later) a >> file may have more than one name (more than one directory en

Re: Comparing file names

2008-08-25 Fir de Conversatie James Vega
On Mon, Aug 25, 2008 at 3:10 PM, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > > On 25/08/08 15:14, Jürgen Krämer wrote: >> >> Hi, >> >> Robert Webb wrote: >>> Another simple question: >>> >>> In a vim script, how do I compare two file names to see if they are the same >>> file? They may be relativ

Re: Comparing file names

2008-08-25 Fir de Conversatie Tony Mechelynck
On 25/08/08 15:14, Jürgen Krämer wrote: > > Hi, > > Robert Webb wrote: >> Another simple question: >> >> In a vim script, how do I compare two file names to see if they are the same >> file? They may be relative or absolute paths. >> >> Obviously if I can expand both to a full path then the compa

Re: Comparing file names

2008-08-25 Fir de Conversatie Jürgen Krämer
Hi, Robert Webb wrote: > > Another simple question: > > In a vim script, how do I compare two file names to see if they are the same > file? They may be relative or absolute paths. > > Obviously if I can expand both to a full path then the comparison is easy, > but expand("path/file:p") does

Comparing file names

2008-08-25 Fir de Conversatie Robert Webb
Hi, Another simple question: In a vim script, how do I compare two file names to see if they are the same file? They may be relative or absolute paths. Obviously if I can expand both to a full path then the comparison is easy, but expand("path/file:p") doesn't do it. ":p" only works after "%"