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#2062: PATH can contain non-expanded variables Date: Tue, 27 Jan 2009 14:02:11 -0500 Message-ID: References: <497E69EB.70609@f2s.com> <497ED2B7.2080509@f2s.com> <497F0C53.5090902@gnu.org> Reply-To: Stefan Monnier , 2062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233084371 2716 80.91.229.12 (27 Jan 2009 19:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 19:26:11 +0000 (UTC) Cc: 2062@emacsbugs.donarmstrong.com, Juanma Barranquero To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 20:27:24 2009 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.50) id 1LRtad-0005dM-2h for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 20:27:15 +0100 Original-Received: from localhost ([127.0.0.1]:40619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRtZL-0001Fs-3C for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 14:25:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRtX4-0007yY-Fv for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:23:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRtX2-0007xN-Lo for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:23:33 -0500 Original-Received: from [199.232.76.173] (port=42282 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRtX2-0007xC-8v for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:23:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32798) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRtX1-0005p4-Rp for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 14:23:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RJNT6P014871; Tue, 27 Jan 2009 11:23:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0RJA4oi011433; Tue, 27 Jan 2009 11:10:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Tue, 27 Jan 2009 19:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2062 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 2062-submit@emacsbugs.donarmstrong.com id=B2062.12330829549339 (code B ref 2062); Tue, 27 Jan 2009 19:10:04 +0000 Original-Received: (at 2062) by emacsbugs.donarmstrong.com; 27 Jan 2009 19:02:34 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RJ2LSJ009333 for <2062@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 11:02:22 -0800 Original-Received: from alfajor.home (vpn-132-204-232-105.acd.umontreal.ca [132.204.232.105]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n0RJ2uf6025067; Tue, 27 Jan 2009 14:02:56 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 89B8D1C14C; Tue, 27 Jan 2009 14:02:11 -0500 (EST) In-Reply-To: <497F0C53.5090902@gnu.org> (Jason Rumney's message of "Tue, 27 Jan 2009 21:29:55 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3198=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 27 Jan 2009 14:23:33 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:24630 Archived-At: >> b) decide that a variable-like string of the form %VARIABLE% in a >> PATH-like value is much, much likely to be that, an unexpanded env >> var, than part of a file or directory name, and so expand it. > If we decide b, then why would we only decide that for Windows (syntax > excepted)? It looks like a situation where the variable expansion is expected to be done by the application under w32 (just like file globbing is not done by the shell there either), contrary to POSIX. So it's definitely not needed in GNU/Linux, and probably not in Mac OS X either. I cannot judge whether Juanma's patch is doing the right thing, or is working around some bug/misfeature elsewhere, or is really doing something wrong (it looks like the second option, tho). Stefan