question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command prompt shows wrong shell

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sjgencocommented, Mar 17, 2020

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:

@sjgenco https://github.com/sjgenco, you are able to change the default terminal shell under the preferences of spyder, bash is the predetermined option.

[image: image] https://user-images.githubusercontent.com/20992645/76903863-c4754d80-686c-11ea-898f-8c6a4b8b57b4.png

You have to reset spyder to see the changes. Please let me know if it works for you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder-terminal/issues/177#issuecomment-600311841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWW7BGQOUF667SNBZLMQWTRH7UBZANCNFSM4LMZZWFA .

– Steve Genco cell: 408 420-7770 email: sjgenco@gmail.com

0reactions
ccordoba12commented, Apr 4, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found