Help answer threads with 0 replies.
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 05-18-2005, 06:10 AM   #1
LQ Newbie
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Problem with Alias in Ksh


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
Old 05-18-2005, 11:59 PM   #2
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

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


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
alias problem p41elvis Linux - Newbie 1 04-28-2005 10:28 AM
ksh check if file exists (using wildcard) problem r18044 Linux - Newbie 5 02-22-2005 07:52 AM
ksh script problem pldobs Programming 2 12-24-2003 11:38 PM
alias problem petarsabev Slackware 1 10-12-2003 02:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 PM.

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