Skip to content

Commit b5d0c56

Browse files
istarkovopencode-agent[bot]rekram1-node
authored
fix: make bash tool respect $SHELL (#3494)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 96a2f52 commit b5d0c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/tool/bash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const BashTool = Tool.define("bash", {
183183
}
184184

185185
const proc = spawn(params.command, {
186-
shell: true,
186+
shell: process.env.SHELL ?? true, // $SHELL if set, otherwise default shell
187187
cwd: Instance.directory,
188188
env: {
189189
...process.env,

0 commit comments

Comments
 (0)