Skip to content

Run bash tool commands with bash, not the login shell - #37

Merged
rommeld merged 2 commits into
mainfrom
fix/issue-24-bash-shell
Sep 26, 2026
Merged

rommeld merged 2 commits into
mainfrom
fix/issue-24-bash-shell

Conversation

@rommeld

@rommeld rommeld commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Fixes #24

Choose executable /bin/bash first, then bash on PATH, then sh as a fallback. Ignore SHELL so bash syntax works when users launch cupel from fish or zsh. Canonicalize PATH candidates so relative PATH entries keep working when the tool changes to the agent's working directory.

Add shell-selection tests and run a bash for-loop under a non-bash SHELL. Validation: cargo fmt --check; cargo test -p cupel-coding-agent; cargo clippy -p cupel-coding-agent --all-targets -- -D warnings; cargo check.

@rommeld
rommeld merged commit ec19682 into main Sep 26, 2026
2 checks passed
@rommeld
rommeld deleted the fix/issue-24-bash-shell branch September 26, 2026 14:35
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.

bash tool runs $SHELL instead of bash (breaks under fish)

1 participant