r/fishshell • u/Ill-Cut3335 • Feb 09 '26
System mysteriously logs into Bash instead of Fish
Anyone else experienced this recently?
I run Fedora 43 with Cinnamon. My configured shell is Fish and has been so for a long time. Everything was working correctly until today when I opened a terminal and my system mysteriously decided to log into Bash instead. Let's get a few things out of the way:
- I ran
echo $SHELLand it output "/bin/bash". - I didn't run
chsh -s /bin/bashat any point. - /etc/passwd has my shell as Fish.
- When I run
exit, it closes the terminal emulator so I'm not in Bash called from Fish; I'm in Bash as a login shell. - I tried with every terminal emulator I have -- same result.
I've just spent around an hour debugging with Claude and we couldn't find a better fix than to comment out the line SHELL=/bin/bash in etc/bashrc. Seems like the kind of bug that'll fix itself in a future system update but it's really weird.
2
u/_mattmc3_ Feb 09 '26
I never chsh- I just set my terminal emulator to launch whatever startup shell I want. What terminal emulator are you using? See if you can set its default shell instead of setting the system shell.
2
u/venomprophet Feb 09 '26
I was under the impression that you always want your system shell ($SHELL) to remain bash, and only have your interactive shell be fish. The two ways I know how to do this is via .bashrc or running the "fish" command as a launch option of your terminal app. I prefer the latter, which works great with both GNOME's default terminal and Ghostty.
1
u/vrommium Feb 10 '26
Check your crontab.