LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-18-2005, 07:10 AM   #1
tomcharnock
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 05-19-2005, 12:59 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

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


Reply


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 01:40 AM
alias problem p41elvis Linux - Newbie 1 04-28-2005 11:28 AM
ksh check if file exists (using wildcard) problem r18044 Linux - Newbie 5 02-22-2005 08:52 AM
ksh script problem pldobs Programming 2 12-25-2003 12:38 AM
alias problem petarsabev Slackware 1 10-12-2003 03:40 PM


All times are GMT -5. The time now is 04:00 PM.

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