Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
Showing results for 
Search instead for 
Did you mean: 

"." in csh search path

Occasional Contributor

"." in csh search path

Hello all,
just to verify does "." means in the search path to search current directory before searching in the directory path ?
In Tru64 when user login .login or .cshrc or .profile whats the order ?

Robert-Jan Goossens
Honored Contributor

Re: "." in csh search path

HI Masroor,

# Do not put "." in PATH; it is a potential security breach.

Yes the . in the $PATH variable means it will surch the current working dir before searching the other PATH env.

Depends on what kind of shell they will use.

ksh -> /etc/profile $HOME/.profile $HOME/.kshrc

csh -> /etc/profile $HOME/.login $HOME/.cshrc

Hope this helps,
Alex Lavrov.
Honored Contributor

Re: "." in csh search path

It depends where "." positioned in search path. If it first than yes, it will search the current dir first.

If it's C-shell:

If it's Bourne shell (sh/bash):

I don't give a damn for a man that can only spell a word one way. (M. Twain)