View previous topic :: View next topic |
Author |
Message |
crackpots
Joined: 10 Feb 2006 Posts: 5
|
Posted: Sat Jan 13, 2007 12:52 am Post subject: Bug: "" in PATH variables break bud |
|
|
When paths in PATH variable are wrapped in quotes bud fails to find the dmd compiler and the config file as a result.
Example:
PATH=c:\d\dmd\bin;MORE_PATHS // Works
PATH="c:\d\dmd\bin";MORE_PATHS // Does not works |
|
Back to top |
|
|
lio
Joined: 28 Apr 2006 Posts: 10 Location: Beijing
|
Posted: Fri Jan 19, 2007 10:47 am Post subject: fixed |
|
|
Code: | Index: pathex.d
===================================================================
--- pathex.d (revision 51)
+++ pathex.d (working copy)
@@ -513,6 +513,11 @@
lCompilerPath.length = 0;
foreach(char[] lPath; lPaths)
{
+ // Strip quotes. (What to do with path0;"path1;path2" ?)
+ if (lPath.length > 0 && lPath[0] == '"')
+ lPath = lPath[1..length];
+ if (lPath.length > 0 && lPath[length-1] == '"')
+ lPath = lPath[0..length-1];
if (lPath.length > 0)
{
// Ensure that the path ends with a valid separator. |
|
|
Back to top |
|
|
|