delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/28/13:17:27

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Strange message from updatedb
Date: Wed, 28 Feb 2007 11:16:47 -0700
Message-ID: <81BDE334890B7C429EDBA5857465C7565F16A1@mcaosx6.ca.mcao.maricopa.gov>
In-Reply-To: <45E5815E.8050505@byu.net>
References: <82c42b950702261435t4acc4fbctdd2042aee0f609d4 AT mail DOT gmail DOT com> <81BDE334890B7C429EDBA5857465C7565F165F AT mcaosx6 DOT ca DOT mcao DOT maricopa DOT gov> <82c42b950702271050w2e807388t6009e795f4041d82 AT mail DOT gmail DOT com> <45E5815E DOT 8050505 AT byu DOT net>
From: "Furash Gary" <furashg AT mcao DOT maricopa DOT gov>
To: "Eric Blake" <ebb9 AT byu DOT net>
Cc: <cygwin AT cygwin DOT com>
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scanInfo: M:P L:E SM:0
X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.6.1039(15026.000)
X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:3 C:4 M:4 S:3 R:3 (0.5000 0.5000)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l1SIHFXv006865

Okay, for a vanilla cygwin user, is there anything *I* should be doing,
or just ignore it and wait for a patch.

Thanks for helping.  I use find all the time ..

:-) 

-----Original Message-----
From: Eric Blake [mailto:ebb9 AT byu DOT net] 
Sent: Wednesday, February 28, 2007 6:19 AM
Cc: Furash Gary; cygwin AT cygwin DOT com
Subject: Re: Strange message from updatedb

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Phil Edwards on 2/27/2007 11:50 AM:
> On 2/27/07, Furash Gary <furashg AT mcao DOT maricopa DOT gov> wrote:
>> /cygdrive/c/System\ Volume\ Information
> 
> Quotes and backslashes aren't going to solve the problem, I think.  I 
> looked at updatedb (it's a shell script), and the --prunepaths 
> argument is passed through a sed script which replaces spaces in order

> to turn it all into a regexp.  There's no way of telling sed to avoid 
> some spaces and translate others.

I've reported this upstream.  I also agree with Enrico's suggestion of
using . instead of a quoted space, since that is the regex character
that will match a space:

updatedb --prunepaths='/cygdrive/c/WINDOWS /cygdrive/e /cygdrive/d
/cygdrive/z cygdrive/y /proc /cygdrive/c/System.Volume.Information
/usr /var
/cygdrive/c/Documents.and.Settings/furashg/Local.Settings/Temporary.Inte
rnet.Files
/usr/bin /cygdrive/c/System.Volume.Information /c/cygwin'

> 
> You used to be able to set the internal PRUNEREGEX variable directly, 
> in a .conf file, but apparently that file is only used under Linux 
> versions of updatedb, or something.

Perhaps that was in distro-modified versions.  I just included updatedb
as it is upstream, plus a single patch to recognize that on cygwin, the
filesystem recognition code doesn't work very well.

> 
> Most lists of dirs are passed around with colon (or some such) 
> separators to avoid just such problems with paths containing 
> whitespace.  updatedb is still living in the 80's.
> 

I agree that directory name lists should look like a PATH, and not be
space separated, but we will see what the upstream maintainer thinks.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5YFe84KuGfSFAYARAiSNAJ4noRa0o7zVr2xZmqQFmUd908zirwCfaqxo
+grDYlWCZCLjEjB+IkXHQ+Q=
=QZKC
-----END PGP SIGNATURE-----

--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019