From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5808: 23.1; substitute-in-file-name $NOSUCH vs ${NOSUCH} Date: Tue, 30 Mar 2010 21:29:53 -0400 Message-ID: References: <87ljd9cpi8.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270001094 23930 80.91.229.12 (31 Mar 2010 02:04:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 02:04:54 +0000 (UTC) Cc: 5808@debbugs.gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 31 04:04:47 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwnIU-00020O-So for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Mar 2010 04:04:47 +0200 Original-Received: from localhost ([127.0.0.1]:58101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwnIU-0004zi-El for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 22:04:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwn9k-0005v9-Sm for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 21:55:44 -0400 Original-Received: from [140.186.70.92] (port=54411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwn9h-0005u5-IQ for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 21:55:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwn9f-0007A0-To for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 21:55:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55272) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwn9f-00079w-Qm for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 21:55:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nwmku-0001Yt-55; Tue, 30 Mar 2010 21:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Mar 2010 01:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5808 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5808-submit@debbugs.gnu.org id=B5808.12699990005980 (code B ref 5808); Wed, 31 Mar 2010 01:30:04 +0000 Original-Received: (at 5808) by debbugs.gnu.org; 31 Mar 2010 01:30:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwmkq-0001YP-7k for submit@debbugs.gnu.org; Tue, 30 Mar 2010 21:30:00 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwmko-0001YK-3W for 5808@debbugs.gnu.org; Tue, 30 Mar 2010 21:29:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAL1CsktLd/h9/2dsb2JhbACbJ3LAVIUABIsj X-IronPort-AV: E=Sophos;i="4.51,338,1267419600"; d="scan'208";a="59900051" Original-Received: from 75-119-248-125.dsl.teksavvy.com (HELO ceviche.home) ([75.119.248.125]) by ironport2-out.pppoe.ca with ESMTP; 30 Mar 2010 21:29:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id EEE67660BF; Tue, 30 Mar 2010 21:29:53 -0400 (EDT) In-Reply-To: <87ljd9cpi8.fsf@blah.blah> (Kevin Ryde's message of "Wed, 31 Mar 2010 11:18:39 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Mar 2010 21:30:04 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35831 Archived-At: > Evaluating > (substitute-in-file-name "$NOSUCHVAR") > => "$NOSUCHVAR > but > (substitute-in-file-name "${NOSUCHVAR}") > => error > Substituting nonexistent environment variable "NOSUCHVAR" [...] > I'm not sure if this is a bug or a feature. I see they were both errors > in Emacs 21, but that 22 up forgives the first. I made the change in Emacs-22 so that most uses of $ in file names can work without needing the quoting by double-dollars. It was a fairly easy change which should cover most cases. Admittedly, the resulting inconsistency is not great, so I guess that the discrepancy is a misfeature/bug, but it's not very high up the list of things to fix. Patches welcome, Stefan