[Issue 278] dmd.conf search path doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 8 07:58:26 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=278


david at acz.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at acz.org
            Version|0.163                       |1.022




------- Comment #10 from david at acz.org  2007-10-08 09:58 -------
1.022 can't find dmd.conf in the bin directory if it's called using PATH,
whereas it 1.021 and 1.015 could find it.

==== [ 1.021 ] ====
export PATH="...:/home/dphillips/opt/dmd-1.021/bin"
strace -o out dmd -ofdpc dpc.d

execve("/home/dphillips/opt/dmd-1.021/bin/dmd", ["dmd", "-ofdpc", "dpc.d"], [/*
66 vars */]) = 0
...
stat64("dmd.conf", 0xbfc2ebec)          = -1 ENOENT (No such file or directory)
stat64("/home/dphillips/dmd.conf", 0xbfc2ebec) = -1 ENOENT (No such file or
directory)
stat64("dmd.conf", 0xbfc2ebec)          = -1 ENOENT (No such file or directory)
stat64("/home/dphillips/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/usr/local/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/usr/bin/dmd", 0xbfc2ebbc)      = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/bin/dmd", 0xbfc2ebbc)          = -1 ENOENT (No such file or directory)
stat64("/usr/games/dmd", 0xbfc2ebbc)    = -1 ENOENT (No such file or directory)
stat64("/opt/gnome/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/mit/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/mit/sbin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file or
directory)
stat64("/home/dphillips/opt/git/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file
or directory)
stat64("/home/dphillips/opt/git/bin/dmd", 0xbfc2ebbc) = -1 ENOENT (No such file
or directory)
stat64("/home/dphillips/opt/dmd-1.021/bin/dmd", {st_mode=S_IFREG|0764,
st_size=1030436, ...}) = 0
stat64("/home/dphillips/opt/dmd-1.021/bin/dmd.conf", {st_mode=S_IFREG|0664,
st_size=64, ...}) = 0
open("/home/dphillips/opt/dmd-1.021/bin/dmd.conf", O_RDONLY) = 3

==== [ 1.022 ] ====

export PATH="...:/home/dphillips/opt/dmd-1.022/bin"
strace -o out dmd -ofdpc dpc.d

execve("/home/dphillips/opt/dmd-1.022/bin/dmd", ["dmd", "-ofdpc", "dpc.d"], [/*
66 vars */]) = 0
...
stat64("dmd.conf", 0xbff37eec)          = -1 ENOENT (No such file or directory)
stat64("/home/dphillips/dmd.conf", 0xbff37eec) = -1 ENOENT (No such file or
directory)
stat64("dmd.conf", 0xbff37eec)          = -1 ENOENT (No such file or directory)
getcwd("/home/dphillips/dpc", 4096)     = 20
lstat64("/home/dphillips/dpc/dmd", 0xbff37f6c) = -1 ENOENT (No such file or
directory)
open("/etc/dmd.conf", O_RDONLY)         = -1 ENOENT (No such file or directory)
unlink("dpc.o")                         = 0


-- 



More information about the Digitalmars-d-bugs mailing list