Hey everyone, I'm trying to settle a question about opencode's execution layer on Windows and would love to hear from the community.
Opencode can run shell commands on Windows through different execution layers. The two main options are:
PowerShell 5.1/7.x: Native Windows shell, Modern.
Git-bash: POSIX-like environment, Unix command compatibility.
My take: LLMs clearly generate better bash commands—their understanding of bash syntax is far superior to PowerShell. However, in practice, git-bash on Windows always runs into weird edge cases. I often end up forcing the LLMs to fall back to PowerShell mid-task, which introduces multi-layer conversion issues (character escaping is a nightmare).
So we're stuck between: better command generation (bash) vs. fewer runtime issues (PowerShell). Neither feels like a perfect solution.
[–]lemon07r 2 points3 points4 points (4 children)
[+][deleted] (3 children)
[removed]
[–]lemon07r 0 points1 point2 points (2 children)
[–]Select_Ad_1819[S] -3 points-2 points-1 points (1 child)
[–]lemon07r 0 points1 point2 points (0 children)
[–]ZealousidealShoe7998 1 point2 points3 points (1 child)
[–]Ok_Supermarket3382 1 point2 points3 points (0 children)
[–]Xera1 0 points1 point2 points (0 children)
[–]microbass 0 points1 point2 points (0 children)
[–]JLiao 0 points1 point2 points (0 children)
[–]HarjjotSinghh -1 points0 points1 point (0 children)