X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=c7KetMMnsiPD63li zsYHhK7C+ClSlaHJACDPFU05OEG7tkMmnzfK2Z/a54xS/ok0HIvOt/ahHIoUGtV+ yFb70va1Q4/YM47Ue/W7aYrEGlSax3jUczCLVw/SnY+mw+9m4qpdi/0gs2LqXv7i Bl2ERyJik9SDMftB6AesJS5GWKs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=JnYrkHDs7PC6WUqnodwq3e 5nCAk=; b=bRuAoNJ4XRyf96JrWuvuHi9vC4xrThRGduSSO9QuyNy258rm1KsMEJ OnMcnsxnPqen7CXg2ZPfQQgc5SaT/8fZBwSHNM+d4jurcogzDmQ+bVH/0TGReY44 BX9Lk7bR1h247kQxmvvsW5xVA/XRtRXxH2ULagkH8rFrLVa1JnxWc= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=off!, letters, online, Canada X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.3 cv=I59Luuog c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=N659UExz7-8A:10 a=-QBJX055wHugetPeG9IA:9 a=pILNOxqGKmIA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: mandb -p deleting "obsolete" Windows cat directories References: <5A66C996 DOT 6010808 AT tlinx DOT org> To: cygwin AT cygwin DOT com From: Brian Inglis Message-ID: <8cc95d48-e694-f022-15e2-e685cabb5568@SystematicSw.ab.ca> Date: Tue, 23 Jan 2018 04:02:30 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <5A66C996.6010808@tlinx.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfGDXG3L/15Vg95nyUpUx4BCI8so89p5c02ov1/ThXhExLlJGtXvfOrJkxVTp15pgvL2pOnoGW6vQrzxBDK/rpM5tJc+99NZyQd3s6O2T54I4+zHeXOR3 fEIIoAMLv2v4r4qaVFvTMA4EkCiNk+3A86jW6YvbX3nYt3Yz4Ux/mbMrVqV3G78A/S6rd61MJ7qokQ== X-IsSubscribed: yes On 2018-01-22 22:35, L A Walsh wrote: > Brian Inglis wrote: >> Removing obsolete cat directory /proc/cygdrive/c/Windows/en-US... >> " >> which is kind of worrisome, especially when the complete path is not shown! >>   > Ouch! > > You might try loading the source of the program and searching for 'obsolete' > in the sources -- (grep -ir obsolete ''). Comments or notes might give > some hints..? Obvious patch is "if (purge) purge_catdirs(...);" which disables it with -p. Already looked and no obvious reason why whole drive scanned, rather than just system cat dirs without matching man dirs. Need to check further if it tests that cat dirs are empty before removal. I use cat dirs for e.g. Windows help, command /?, program --help output, anything without man pages, to avoid having to remember how to do that. I don't want those purged either - I would be mighty POed - some are from strings searches thru exes and online docs! >> Question is why does mandb scan the whole drive, think Windows cat >> directories are its property, delete them while running with -p, and >> suggestions for how> Also, might check if any of places it scans are symlinks? Most man symlinks are created by me for specific purposes and valid from my checks using "find -L ... -type l | xargs ls -dl --color". PATH profile function checks for accessible real path names to guarantee order, existence, eliminate duplicates, and reduce search overhead. Looks like I have to patch as above, rebuild with debuginfo, and run with debugging output under gdb. Then I want to complete the details on the mandb page, as any directory starting with two lowercase letters, optionally followed by any non-lowercase character, with any subdirectory starting with cat, without a matching subdirectory starting with man followed by the (possibly null) suffix for cat, gets wiped e.g. abZ/catalog/ goes unless abZ/manalog/ exists. Then possibly add another option --no-purge-obsolete patch to switch that off! -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple