Search environment variables for paths

Hi,

I am using the HP machine at the moment and by default I have been setup with the kron shell i.e. my home profile is .kshrc

I would like to access a program anywhere on the system so I have added a path and created an environment variable like this:

export myvarpath=/a/abc/def/ghij

I then activate these changes and check its been setup under my list of env vars. My question is why I still cannot find my program under this dir?

It seems to only search the PATH var but no other, am I missing soemthing here as I understood that by default on the unix by default all env vars should be searched for when you type a command in the terminal.

ThanKS

cf

Nothing stopping you after to update your PATH variable:

export PATH=$PATH:$myvarpath

Yes PATH is for search path for executables and MANPATH for all manuals...

So I guess even though I had set up a path on my own mad up variable this will never be searched for.

Thanks

---------- Post updated at 08:14 AM ---------- Previous update was at 08:10 AM ----------

export myvarpath=/a/abc/def/ghij
export PATH=$PATH=myvarpath

this doesn't seem to work?

---------- Post updated at 08:16 AM ---------- Previous update was at 08:14 AM ----------

Sorry missed the : instead of ==

And the $ to myvarpath also...