Termux Bash Shell Not Working After Update
Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 9 comments · opened Mar 5, 2025 · closed Mar 5, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
The bash mode was working till the last update. I use termux on android and when I try to run a bash command I have this error (SHELL env var is set):
````
Command failed: No suitable shell found. Claude CLI
requires a Posix shell environment. Please ensure
you have a valid shell installed and the SHELL
environment variable set.
````
Environment Info
- Platform: linux
- Terminal: xterm-256color
- Version: 0.2.30
- Feedback ID: b6deef64-eac7-4377-8ee9-7007eafad16a
9 Comments
I'm getting this too. Running in tmux as well in a nixos VM. Claude has been working perfect for me until the last update. Running it not in tmux still has this issue.
Claude still seems to work (excluding the
Bashtool), and I tried these things but can't get the error to go away:that you for this bug report. in the last update, we changed our shell behavior a bit.
we used to try to just use your SHELL env var. this caused problems—Claude thinks it's using a POSIX shell, so starting nu or fish would kind of work and kind of not.
as of the recent update, we have a stricter allow list of shell binary locations and we only support bash and zsh:
If we can't find one of these, then the shell just won't start. Do you have bash or zsh installed somewhere but just not at one of these location? Happy to extend this list.
Yes:
And I'm usually doing things in a nix shell so it's like this (the nix store string will change based on project):
ok this is the problem. sorry for breaking this. let me work on this a bit and reply back, hopefully we can have a patch out soon
in my case I was trying claude on mobile devices with terminal emulator termux. The shell path is:
/data/data/com.termux/files/usr/bin/bashwe just published 0.2.32. can you please let me know if this fixes the issue?
Cool I updated Claude and tested. It works. Good job guys. Thanks
Working for me too, thanks so much!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.