emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-library-name fails if file (with no extension) exists.


From: Eli Zaretskii
Subject: Re: find-library-name fails if file (with no extension) exists.
Date: Wed, 22 Nov 2006 06:22:35 +0200

> From: David Kastrup <address@hidden>
> Date: Wed, 22 Nov 2006 01:47:53 +0100
> Cc: Juanma Barranquero <address@hidden>, Emacs Devel <address@hidden>
> 
> You can't decide that two file names might indicate the same file
> without doing an actual file operation.  You can't decide whether
> writing a file would conflict with an existing file without actually
> doing the write (and asking the operating system to fail in case the
> file exists).  You can't really base any decision on existing file
> names.  As a rule of thumb, if there is a possibility for a race
> condition, there is a possibility for filename aliasing trouble.  And
> not every potential race condition is a problem.

The same trouble exists with hard links.

> Things like file name completion are simply something which is
> impossible to get right.

Really?  Then how come this has been satisfactorily solved several
times already, both in Emacs and in ports of Bash?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]