[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/45130: /etc/locate.conf cannot deal with pathnames containing spaces
The following reply was made to PR bin/45130; it has been noted by GNATS.
From: Alan Barrett <apb%cequrux.com@localhost>
Subject: Re: bin/45130: /etc/locate.conf cannot deal with pathnames
Date: Sun, 10 Jul 2011 10:29:49 +0200
> it seems locate.updatedb cannot be told to ignore files or
> directories which have whitespace in their pathnames, but such
> names are becoming increasingly common on shared file stores,
> and even on native systems
Thanks for the patch. However, it has another problem: Files or
directories that have quotation marks in their names cannot be
I think that we should allow multiple arguments, as it says in
the man page, but allow shell-style quoting within the arguments,
# testing locate.updatedb
ignore /home/oldfiler/bogus\ stuff
ignore /home/oldfiler/"not a real name"
ignorecontents "/Volumes/Macintosh HD Part 2/backups"
ignorecontents '/Volumes/Macintosh HD Part 2/also ignore'
Main Index |
Thread Index |