[Issue 278] dmd.conf search path dosn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 20 23:16:44 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=278
thomas-dloop at kuehne.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Keywords| |patch
Resolution|FIXED |
------- Comment #6 from thomas-dloop at kuehne.cn 2006-09-21 01:16 -------
The current (dmd-0.167) search strategy is incorrect.
sample:
/opt/dmd/bin/dmd
/opt/dmd/bin/dmd.conf
/usr/bin/dmd -> /opt/dmd/bin/dmd (symlink)
PATH=/usr/bin/:/usr/local/bin/
HOME=/home/user
CWD=/home/user/project
dmd-0.167 is looking for dmd.conf in the following places:
[1] /home/user/project/dmd.conf (CWD)
[2] /home/user/dmd.conf (HOME)
[3] /usr/bin/dmd.conf (argv0)
[4] /usr/bin/local/dmd.conf (argv0)
[5] /etc/dmd.conf (/etc)
The problem is that [3] and [4] are using PATH instead of argv0.
dmd should - according to the documentation - look for dmd.conf in the
following places:
[1] /home/user/project/dmd.conf (CWD)
[2] /home/user/dmd.conf (HOME)
[3] /opt/dmd/bin/dmd.conf (argv0)
[4] /etc/dmd.conf (/etc)
See http://d.puremagic.com/issues/show_bug.cgi?id=278#c5 for a fix.
--
More information about the Digitalmars-d-bugs
mailing list