X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <387E9FC1619C0849BA8934938037E54F0F5BC9 AT sv-muc-004 DOT venyon-mail DOT local> <46BC5567 DOT 1070307 AT users DOT sourceforge DOT net> Subject: RE: Possible bug: d does not seem to read ~/.d.conf Date: Fri, 10 Aug 2007 15:02:03 +0100 Message-ID: <03e401c7db57$07898840$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l7AE2KXX008337 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: ~ $ d AutoBld/ /home/dk/AutoBld/: rwxr-xr-x dk:Domain Users 0 Aug 10 14:56 .a/ rwxr-xr-x dk:Domain Users 0 Aug 10 14:56 .b/ 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 .g rw-r--r-- dk:Domain Users 0 Aug 10 14:56 .h rw-r--r-- dk:Domain Users 0 Aug 10 14:56 e rw-r--r-- dk:Domain Users 0 Aug 10 14:56 f 4 regular files in directory, with a total size of 0. ~ $ cat .d.conf hidden-files=true ~ $ rm .d.conf ~ $ d AutoBld/ /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! ~ $ This could well be a case of YMMV. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/