LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell won't change! (https://www.linuxquestions.org/questions/linux-newbie-8/shell-wont-change-553053/)

jaykup 05-11-2007 12:11 AM

Shell won't change!
 
Somehow, playing around with things I've changed my shell to something other than bash. When I get back into bash "bash -l" and type:

Code:

% bash -l
$ echo $SHELL
/usr/bin/wish
$ export SHELL=/bin/bash
$ echo $SHELL
/bin/bash

Then close the terminal open it back up

Code:

% echo $SHELL
can't read "SHELL": no such variable
% bash -l
$ echo $SHELL
/usr/bin/wish

I can't find wish in /etc/profile, I've used chsh, and usermod -s. All with no luck. I don't understand. Why is it defaulting back to wish???

gilead 05-11-2007 01:27 AM

After you used chsh did you log out completely from your session and log in again? chsh changes the value of your shell in /etc/passwd - it doesn't change the currently running shell.

jaykup 05-11-2007 07:20 AM

Thanks, I didn't logout of the windows manager. Duh!


All times are GMT -5. The time now is 05:03 PM.