Possible bug: d does not seem to read ~/.d.conf

Thorsten Kampe thorsten@thorstenkampe.de
Fri Aug 10 15:23:00 GMT 2007


* Dave Korn (Fri, 10 Aug 2007 15:02:03 +0100)
> On 10 August 2007 14:21, Thorsten Kampe wrote:
> > * Yaakov (Cygwin Ports) (Fri, 10 Aug 2007 07:09:11 -0500)
> >> Ronald Fischer wrote:
> >>> From
> >>> 
> >>>    info d
> >>> 
> >>> we can see that /usr/bin/d is supposed to honour a configuration file
> >>> ~/.d.conf and that in this file, the boolean variable hidden-files-shown
> >>> corresponds to the --hidden-files flag in the d command line.
> >> 
> >> Hmmm, that page of the info appears to be outdated.  See the Command
> >> Line Options section as well as /usr/share/doc/d-1.2.0/d.conf.example
> >> for current syntax.
> > 
> > These resources don't contradict the info file but state the same.
> > Fact is that d under Cygwin ignores ~/.d.conf while under Linux it
> > works as expected.
> 
>   It doesn't ignore it: it works just fine, if you get the option right, and gives you a syntax error if not.  Observe:
> [...]
> /home/dk/AutoBld/:
> rwxr-xr-x  dk:Domain Users  0  Sep 12  2006  BLDHIST/
> rwxr-xr-x  dk:Domain Users  0  Aug 10 14:56  c/
> rwxr-xr-x  dk:Domain Users  0  Aug 10 14:56  d/
> rw-r--r--  dk:Domain Users  0  Aug 10 14:56  e
> rw-r--r--  dk:Domain Users  0  Aug 10 14:56  f
> 2 regular files in directory, with a total size of 0.
> ~ $ echo "arfle barfle gloop" > ~/.d.conf
> ~ $ d AutoBld/
> d: runtime error in parse_opt_cfg():  Invalid syntax in ".d.conf" at line 1!  Unrecognized option!

The problem (/my/ problem and maybe Ronald's) is that d reads the home 
directory from /etc/passwd and not from the environment variable 
$HOME. In my setup these differ.

In my opinion $HOME should take precedence over the home directory set 
in /etc/passwd.

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list