GNU bug report logs -
#2062
PATH can contain non-expanded variables
Previous Next
Reported by: Juanma Barranquero <lekktu <at> gmail.com>
Date: Mon, 26 Jan 2009 13:10:04 UTC
Severity: normal
Tags: notabug
Found in version 23.0.60
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #30 received at 2062 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Tue, Jan 27, 2009 at 02:56, Jason Rumney <jasonr <at> f2s.com> wrote:
> The right place to do this expansion is where the variable is read from the
> registry, and only when the type is REG_EXPAND_SZ.
The problem is, we don't read
"HKLM\Software\Microsoft\Windows\CurrentVersion\App
Paths\emacs.exe\Path", we find the PATH made for us and it contains
unexpanded variables.
My patch modifies decode_env_path, because it is used for PATH-like
variables, not generic environment variables. How likely is that such
a PATH-like variable contains a string like %VARIABLENAME%, meaning a
literal "%VARIABLENAME%" directory or filename (or part of it)? That's
a hypothetical problem, while my path containing such a variable is a
fact.
Juanma
This bug report was last modified 16 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.