If it's using sed to build a regex and match against that, is it quoting regex metachars? If not you could replace the spaces with periods and it should work - although it would also prune any other paths that were the same other than replacing the space with something else.
On 3/3/08, Richard Cobbe <[EMAIL PROTECTED]> wrote: > I've got a couple of partitions on an external drive that contain only > backups, so I don't want them to show up in /sw/bin/locate's database. > > In principle, the right thing to do is to edit /sw/etc/cron.daily/findutils > to pass the --prunepaths option to updatedb, but that doesn't work in this > case, because --prunepaths expects a space-separated list, and the paths I > want to exclude have spaces in them. Escaping the spaces with backslashes > doesn't work. (If you look at the script /sw/bin/updatedb, you'll see that > it uses a primitive sed script to change the space-separated list into a > regex, and this sed script doesn't pay any attention to escapes.) > > I'm fairly certain that this limitation in the findutils package exists in > the upstream copy and isn't fink's responsibility. But I thought I'd ask > anyway. Does anyone know of a way around this problem? > > Thanks, > > Richard > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Fink-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fink-users > -- Mark J. Reed <[EMAIL PROTECTED]> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
