LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with Alias in Ksh (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-alias-in-ksh-324613/)

tomcharnock 05-18-2005 06:10 AM

Problem with Alias in Ksh
 
Hi

I've just installed linux SuSE 9.0 in order to run some software. To do this I have been told I need to create a user with the default shell as ksh. I have been given a section of text to put into .profile of the user.

When I start linux the default window manager is KDE. The problem I have is that when I start a console the alias commands in the section in .profile have not been register by the shell.

e.g. inside the section in .profile is the line
alias something=somethingelse

but when I type alias at the command prompt "something" is not listed.

I know that .profile is being read because the environment variables in the section are being set.

The console starts in ksh, if I manually change to bash and type alias then "something" is there! As far as I can tell .profile is being read by the bash shell even though the default shell for the user is ksh and the console starts in ksh.

any ideas?

best regards Tom

mrcheeks 05-18-2005 11:59 PM

Can't ksh read the file /etc/profile for example or something like .kshrc like .bash_profile for bash and .cshrc/.tcshrc for C shell/tcsh shell


All times are GMT -5. The time now is 01:22 AM.