I'm not sure how to reproduce that second one you have. What variable do you think it was replacing there?
The first problem is fixed in SVN though - it will no longer replace variables whose names are longer than their values.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've added a
Log.log(Log.DEBUG,MiscUtilities.class, "PUT: '" + v + "' => '" + k + "'" );
before the "prefixMap.put(v, k);" and it contains '=c:' => 'c:\usr\jedit'.
When I execute "set" in a jEdit console window, the list contains:
!C:='C:\usr\jedit'
I'd say this entry needs to be ignored - whatever it means (maybe starting directory?!).
Also the key "_" should probably get ignored - which contains "bash" in a jEdit console.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Additionally "c:\usr\jedit\build\modes\php.xml" gets replaced with "%=C:%\build\modes\php.xml"
I'm not sure how to reproduce that second one you have. What variable do you think it was replacing there?
The first problem is fixed in SVN though - it will no longer replace variables whose names are longer than their values.
I've added a
Log.log(Log.DEBUG,MiscUtilities.class, "PUT: '" + v + "' => '" + k + "'" );
before the "prefixMap.put(v, k);" and it contains '=c:' => 'c:\usr\jedit'.
When I execute "set" in a jEdit console window, the list contains:
!C:='C:\usr\jedit'
I'd say this entry needs to be ignored - whatever it means (maybe starting directory?!).
Also the key "_" should probably get ignored - which contains "bash" in a jEdit console.
Something like the following could fix this:
Index: org/gjt/sp/jedit/MiscUtilities.java
--- org/gjt/sp/jedit/MiscUtilities.java (Revision 13703)
+++ org/gjt/sp/jedit/MiscUtilities.java (Arbeitskopie)
@@ -1775,6 +1775,7 @@
for (String k: env.keySet()) {
if (k.equalsIgnoreCase("pwd")) continue;
+ if (k.charAt(0) == '_' || k.charAt(0) == '=') continue;
String v = env.get(k);
if (k.length() > v.length()) continue;
Committed revision 13704.