cancel
Showing results for 
Search instead for 
Did you mean: 

"." in csh search path

CA1309511
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 ?

2 REPLIES
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

http://www.iam.fmph.uniba.sk/linux/guide/node23.html

Hope this helps,
Robert-Jan
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:
.cshrc
.login

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


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