[Issue 278] New: dmd.conf search path dosn't work

Sean Kelly sean at f4.ca
Fri Aug 4 09:06:06 PDT 2006


Walter Bright wrote:
> BCS wrote:
>> Walter Bright wrote:
>>> d-bugmail at puremagic.com wrote:
>>>
>>>> from http://www.digitalmars.com/d/dcompiler.html
>>>>
>>>> "dmd will look for the initialization file dmd.conf in the following 
>>>> sequence
>>>> of directories:
>>>>
>>>>    1. current working directory
>>>>    2. directory specified by the HOME environment variable
>>>>    3. directory dmd resides in
>>>>    4. /etc/"
>>>>
>>>> However, on Linux, step number three ("directory dmd resides in") 
>>>> doesn't work.
>>>
>>>
>>> That's very strange, because that's the way I use dmd on Linux.
>>
>> I tried copying /etc/dmd.conf to /bin/ and renaming the /etc ver 
>> something else and DMD started complaining about not being able to 
>> find object.d
>>
>> Want a log?
> 
> No. I'll recheck the source code. (You can as well!)

I do all my switching in /etc/dmd.conf and recently had some weird 
problems when I tried using Build on Linux.  It turned out that I had an 
old dmd.conf file in /dmd/bin as well, and removing this fixed things. 
So I think the checking of /bin/dmd/dmd.conf may not work correctly.  I 
have /dmd/bin in my path, could it be that the argv[0] doesn't contain a 
fully qualified path name and so the function ends up looking in the 
current directory twice?


Sean



More information about the Digitalmars-d-bugs mailing list