Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-08-2004, 12:00 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Question Doesnt source .kshrc when ksh is started

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?

Old 03-08-2004, 04:41 PM   #2
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Rep: Reputation: 15
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...
Old 03-08-2004, 08:54 PM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,756

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 12:31 PM
Getting started in Open Source whereverjustice Linux - Newbie 2 04-21-2005 11:31 PM
samba server doesnt started upon boot scng Linux - Networking 2 09-09-2004 12:53 PM
ksh functions in .kshrc brian0918 Linux - Newbie 21 06-06-2003 06:32 PM
function in .kshrc to cd then ls brian0918 Linux - Newbie 1 06-04-2003 03:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration