emacs-devel
[Top][All Lists]
Advanced

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

Re: substitute-in-file-name and "$"


From: Kai Großjohann
Subject: Re: substitute-in-file-name and "$"
Date: Sun, 06 Jul 2003 18:53:05 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Luc Teirlinck <address@hidden> writes:

> What if somebody has an environment variable FOO expanding to bar and
> another file named $FOO?  Several operating systems, including GNU and
> Unix, allow people to essentially use any file names of their
> choosing, no matter how perverse.  Programs have to be able to handle
> that, even though that might make life complicated.

IMHO, the best approach is to have substitute-in-file-name return
"$$" for dollar signs in file names and to have all file primitives
grok this notation.

However, it suffers from being backward-incompatible.

Maybe the primitives could grok single dollar signs, too, then the
incompatibility would be restricted to file names with two adjacent
dollar signs.  Let's hope these are not too common.
-- 
~/.signature





reply via email to

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