On 2006-01-05 21:08:20 -0800, Kevin Lindsay wrote:
> oops, juse to be more clear, anything in the environment var LOCATE_PATH
> will always be searched regardless. ie,
> 
> This will search both db1.db and db2.db, but not the default database:
> LOCATE_PATH=db1.db
> slocate -d db2.db foo
> 
> This will search both db1.db and the default database:
> LOCATE_PATH=db1.db
> slocate foo
> 
> This is what I gather from looking at the old code.

On a non-Debian machine:

tate:~> slocate --version
Secure Locate 2.7 - Released January 24, 2003
tate:~> echo $LOCATE_PATH
/users/spaces/vlefevre/private/locate/home.db:/users/spaces/vlefevre/private/locate/logiciels.db
tate:~> slocate bin/browser
/users/spaces/vlefevre/bin/browser
zsh: exit 1     slocate bin/browser

On a Debian/unstable machine:

dixsept:~> echo $LOCATE_PATH

dixsept:~> echo $MY_LOCATE_PATH
/users/spaces/vlefevre/private/locate/home.db:/users/spaces/vlefevre/private/locate/logiciels.db
dixsept:~> slocate bin/browser
/home/vlefevre/bin/browser
/home/vlefevre/greux/bin/browser
dixsept:~> LOCATE_PATH=$MY_LOCATE_PATH slocate bin/browser
dixsept:~> slocate -d $MY_LOCATE_PATH slocate bin/browser
dixsept:~> slocate --version
Secure Locate 3.0 beta r1 - Released December 19, 2005
zsh: exit 1     slocate --version

BTW, I don't think slocate --version and slocate --help should return
with a non-zero exit status.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Reply via email to