From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: substitute-in-file-name and "$" Date: Sun, 06 Jul 2003 18:53:05 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84y8zbzjf2.fsf@lucy.is.informatik.uni-duisburg.de> References: <200307051829.h65IT4d05636@raven.dms.auburn.edu> <200307061624.h66GO0G06676@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057510677 12772 80.91.224.249 (6 Jul 2003 16:57:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2003 16:57:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 06 18:57:55 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZCpn-0003Js-00 for ; Sun, 06 Jul 2003 18:57:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ZCzC-00062S-00 for ; Sun, 06 Jul 2003 19:07:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZCml-0008FP-88 for emacs-devel@quimby.gnus.org; Sun, 06 Jul 2003 12:54:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ZCmE-0007U7-Ju for emacs-devel@gnu.org; Sun, 06 Jul 2003 12:54:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ZClz-0006ro-Pq for emacs-devel@gnu.org; Sun, 06 Jul 2003 12:54:00 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZClG-0006Hh-Bz for emacs-devel@gnu.org; Sun, 06 Jul 2003 12:53:14 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19ZCkc-000333-00 for ; Sun, 06 Jul 2003 18:52:34 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19ZCkb-00032u-00 for ; Sun, 06 Jul 2003 18:52:33 +0200 Original-Lines: 19 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:IeFORPbHE0wM5HJgfenGKLwtGdg= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15422 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15422 Luc Teirlinck 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