Command prompt shows wrong shell
See original GitHub issueI just installed Spyder terminal w Spyder 4.0.1 inside my Anaconda3 environment on a MacBook Pro OS 10.15.3 (Catalina). I’d previously changed my default terminal shell to zsh, as instructed by Apple. On opening the Terminal tab in Spyder, it seems to think it’s using bash, but it’s actually using zsh.
What steps will reproduce the problem?
On opening, I see this, as expected:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$
but if I check the shell, I see this:
bash-3.2$ echo $SHELL
/bin/zsh
bash-3.2$
What is the expected output? What do you see instead?
I’ve run chsh -s /bin/zsh
but of course it says nothing to change, as it’s already using zsh.
Please provide any additional information below
Versions and main components
- Terminal Version: 0.3.0
- Spyder Version: 4.0.1
- Python Version: 3.7.6
- Operating system: MacOS 10.15.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
my command prompt defaulting to H drive and not changing to ...
On your Start menu type cmd , then Command Prompt will be shown from the list. Right click it, select Properties.
Read more >How to fix an incorrect Linux shell - YouTube
... users on your Linux server and find they have the wrong shell prompt, the solution is actually quite simple. Jack Wallen shows...
Read more >Command prompt won't change directory to another drive
Type CD drive: to display the current directory in the specified drive. Type CD without parameters to display the current drive and directory....
Read more >Wrong Shell for user and $SHELL value [duplicate] - Ask Ubuntu
The default shell of my user somehow changed to /bin/sh even though it's set in /etc/passwd to /bin/bash. I can't seem to be...
Read more >Newly created user on Ubuntu Server has the wrong shell ...
Check the shell you have assigned. If you used the useradd command in Ubuntu 18, the default login shell will be /bin/sh and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you. That did work. An additional wrinkle you might want to look at is the fact that I was actually running the zsh shell already, but Spyder Terminal was showing the bash prompt even though zsh, not bash, was my current shell. So that’s somewhat different problem than not knowing how to change the shell. Thanks for the quick reply and solution!
On Tue, Mar 17, 2020 at 2:33 PM Stephannie Jimenez Gacha < notifications@github.com> wrote:
– Steve Genco cell: 408 420-7770 email: sjgenco@gmail.com
@steff456, I agree with @goanpeca, we need to address this because it’s very confusing to select a different shell type and always get a bash prompt in return.
Please see this for some ideas on how to do it:
https://stackoverflow.com/questions/3327013/how-to-determine-the-current-shell-im-working-on