X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: RE: Possible bug: d does not seem to read ~/.d.conf Date: Fri, 10 Aug 2007 16:22:01 +0100 Lines: 41 Message-ID: References: <387E9FC1619C0849BA8934938037E54F0F5BC9 AT sv-muc-004 DOT venyon-mail DOT local> <46BC5567 DOT 1070307 AT users DOT sourceforge DOT net> <03e401c7db57$07898840$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com * 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/