From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#2062: PATH can contain non-expanded variables Date: Tue, 27 Jan 2009 20:55:09 +0100 Message-ID: References: <497E69EB.70609@f2s.com> <497ED2B7.2080509@f2s.com> Reply-To: Juanma Barranquero , 2062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233087863 16106 80.91.229.12 (27 Jan 2009 20:24:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 20:24:23 +0000 (UTC) Cc: 2062@emacsbugs.donarmstrong.com, jasonr@f2s.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 21:25:36 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 1LRuV4-0001RL-OM for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 21:25:35 +0100 Original-Received: from localhost ([127.0.0.1]:54288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRuTm-00019S-IJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 15:24:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRuT8-0000uu-I1 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 15:23:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRuT7-0000uP-94 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 15:23:34 -0500 Original-Received: from [199.232.76.173] (port=43520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRuT6-0000uG-V9 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 15:23:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46094) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRuT6-0005Qk-D9 for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 15: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 n0RKNT2j030104; Tue, 27 Jan 2009 12:23:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0RK55Ip025412; Tue, 27 Jan 2009 12:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juanma Barranquero Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Tue, 27 Jan 2009 20:05:05 +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.123308615023256 (code B ref 2062); Tue, 27 Jan 2009 20:05:05 +0000 Original-Received: (at 2062) by emacsbugs.donarmstrong.com; 27 Jan 2009 19:55:50 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RJtkMF023248 for <2062@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 11:55:47 -0800 Original-Received: by ewy3 with SMTP id 3so9090240ewy.1 for <2062@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 11:55:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=E4Tv0VqNyDlu3OPgMmzqEWVJwdB/8cio3DgmsJ52iKM=; b=Yguf1aUBgCVmHRoYNPZQsad6HWKP7B+Nf7JnyQHOkJRsgzA5C5Zk62/yybAWU7Oy9W sEM6SqzWE1yC/iaunZl3KLRSt97Xe3wHaJIauZEMM7g8M1fBgPoyFQ1Q65QiC4f4QG9C 1tE0yPoXLiVPc/dwIrLdyIPadPoBwQcem36pY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bxGr0BJz3843M/zg5d1HDEy3c7jv7Od0eUS4ltcFvt9PS35WnBmwpUWgXPI7qghuVJ qvVIW6LbUErFer0PFBk24xIBN5tnpARW4lFBZEsX7RCc9jfbI8x1p2tYFtDK3rxoJFi4 wxFnUllNFYU4I3C7qTfHf5Ss8qC6VXLkIyjYA= Original-Received: by 10.210.76.4 with SMTP id y4mr77688eba.176.1233086109900; Tue, 27 Jan 2009 11:55:09 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 27 Jan 2009 15: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:24634 Archived-At: On Tue, Jan 27, 2009 at 20:30, Eli Zaretskii wrote: > What was the use-case that caused Path to include unexpanded > environment variables in your case? In *my* case, I run several instances of Emacs, and I put different binaries (image libraries, etc.) in several directories, pointed to by one environment variable. I always start Emacs from the command line, and I set the environment variable according to which Emacs I want to run and what additional binaries to use. I have the App Path set to C:\emacs\%myvar%\bin, where %myvar% points to the relevant dir. But my use case is not important: there are many ways to do what I do, and I'm not even claiming mine is optimal, or close to it. If I want to fix that (or work around it, if it is a Windows bug) is because certainly there's nothing precluding the user from setting a REG_EXPAND_SZ for PATH, or EMACSPATH or EMACSLOADPATH, and there seems to be no downside to this change, unless we deem C:\this\is%myweird%path\to\file likely. But this does not merit too long a discussion IMO. Either you (all) think it's useful, or hackish. Your call. Juanma