2
0
Эх сурвалжийг харах

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 <[email protected]>
Ivan Starkov 3 сар өмнө
parent
commit
b5d0c56b4c

+ 1 - 1
packages/opencode/src/tool/bash.ts

@@ -183,7 +183,7 @@ export const BashTool = Tool.define("bash", {
     }
 
     const proc = spawn(params.command, {
-      shell: true,
+      shell: process.env.SHELL ?? true, // $SHELL if set, otherwise default shell
       cwd: Instance.directory,
       env: {
         ...process.env,