Skip to content

Fall back to an existing bash or zsh before /bin/bash - #492

Open
y0usaf wants to merge 1 commit into
vercel-labs:mainfrom
y0usaf:upstream-pr/login-shell-fallback
Open

Fall back to an existing bash or zsh before /bin/bash#492
y0usaf wants to merge 1 commit into
vercel-labs:mainfrom
y0usaf:upstream-pr/login-shell-fallback

Conversation

@y0usaf

@y0usaf y0usaf commented Aug 28, 2026

Copy link
Copy Markdown

Systems whose account shell is not bash or zsh previously resolved the hardcoded /bin/bash fallback even when that path does not exist, as on NixOS, so captured commands failed with FileNotFound and terminal sessions wedged waiting for a shell that never started. The fallback now keeps the historical platform default when it exists and otherwise probes well-known absolute locations.

Supersedes #391, which was closed because its head branch carried unrelated fork history; this PR contains only the fix, rebased onto current main.

Systems whose account shell is not bash or zsh previously resolved the
hardcoded /bin/bash fallback even when that path does not exist, as on
NixOS, so captured commands failed with FileNotFound and terminal
sessions wedged waiting for a shell that never started. The fallback
now keeps the historical platform default when it exists and otherwise
probes well-known absolute locations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant