LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-23-2003, 08:59 AM   #1
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
shell changing problems!


hi i have a problem, when i am in one shell e.g. bash and i use chsh to change to csh and it says it is done, i type the finger command and it confirms this change.

however, if i type env the shell is the same as it was before the change AND what is weirder is if i try and type a csh command like setenv or something it doesn't recognise it but it does recognise a bash command like export, therefore it must still be the same?

this happens when i login as normal or as root

i am using redhat 9, if this makes a difference?

any ideas would be great!
 
Old 05-23-2003, 11:51 AM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
Read the man page for chsh, it changes your login shell, not your currently running shell.
 
Old 05-23-2003, 03:10 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
do you think maybe your csh is a symlink to bash?

you can also use kuser to chage your shell.
 
Old 06-02-2003, 01:13 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
csh should never be a symlink to bash, they are different kinds of shells. csh is a C-shell, while BASH is a Bourne shell, different syntax, different built-in command set, etc. Shell scripts which expects csh and gets bash will fail.
 
Old 06-02-2003, 02:21 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
"should never" is right. you never know what some
crazy script might do though. I was installing turnkey
linux, and it did a bunch of weirdo stuff like deleting
my /usr/bin/c++, and a bunch of other similar stuff.
maybe it would set stuff back like it was after the script
completed, but it didn't complete.
seriously, i found in the scripts in that turnkey where it
deletes /usr/bin/c++. luckily mine was a symlink. i
was really suprised when i found that script. it deletes
and moves other system stuff around too.
 
  


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
changing root shell surfbass Linux - General 1 10-28-2005 03:03 PM
Changing Bash Shell JinSeung Linux - General 3 09-10-2004 09:54 PM
changing computer name in shell hamster001 Linux - Newbie 8 10-29-2003 06:12 PM
changing SHELL ? dahmad Linux - Newbie 3 02-27-2003 01:59 PM
Changing a users shell bij368 Linux - General 2 07-02-2001 10:40 AM


All times are GMT -5. The time now is 06:24 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