Hello,

I'm using ksh and I have in ~/.kshrc

LOCATE_PATH=$HOME/.locate.database:/var/db/locate.database

(I'm not using export there to be consistent with /etc/ksh.kshrc)

in ~/.profile I have

export ENV=$HOME/.kshrc

ksh is showing this variable in set command, but I have to export this variable 
manually to have it working

$ set | grep LOCATE                                                         
LOCATE_PATH=/home/navratil/.locate.database:/var/db/locate.database
$ locate evMp6ma3xnk4IOJq6SGU
$ export LOCATE_PATH=$HOME/.locate.database:/var/db/locate.database
$ locate evMp6ma3xnk4IOJq6SGU                                      
/home/navratil/evMp6ma3xnk4IOJq6SGU

Please advice, what I have to adjust to have locate working with
LOCATE_PATH without manually exporting it.

Thank you,
Jiri

-- 
Jiri Navratil, http://kouc.navratil.cz, +420 222 767 131

Reply via email to