LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Doesnt source .kshrc when ksh is started (https://www.linuxquestions.org/questions/linux-newbie-8/doesnt-source-kshrc-when-ksh-is-started-154995/)

pkan 03-08-2004 11:00 AM

Doesnt source .kshrc when ksh is started
 
Hi!
When a start a ksh, it doesnt source my .kshrc file. Even when I try to do it manually, it doesnt go into effect at all. I borrowed the file from someone else to make sure that I dont have any errors in the .kshrc file. This is what it says:

$ . .kshrc
/bin/ksh: .: .kshrc: not found


Can someone help please?

Thanks!

stupid_guy 03-08-2004 03:41 PM

where did you put the .kshrc? because .kshrc is not in /bin/ksh when I looked.

usually .*rc files are in your home directory.
try this: get your borrowed file and dump it into your home dir.

personally, I prefer bash though...

jlliagre 03-08-2004 07:54 PM

to have korn shell execute a .kshrc or any other rc file, you need to do:
export ENV=~/.kshrc in your .profile

True at least with the *real* ksh


All times are GMT -5. The time now is 09:48 PM.