You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
& : The term 'sh.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
What is the expected behavior?
Expected behavior is for codex cli to start running properly. This PR shows the expected behavior #318
What do you see instead?
A message indicating the powershell shim codex.ps1 is attempting to run sh.exe. This shouldn't be happening because
Additional information
Added a potential fix here #318 , this change now provides cross-platform support and works on all CLIs by using a Node based entry point
Reacted by p2501i, gitmeatarru, Tawsif Kamal, Serhan Asad and Avi
It hasn't been uploaded to npm yet. If you clone the repo and have this running locally instead of getting it from npm you will have all the recent commits.
Activity
PramaYudhistira commentedon Apr 18, 2025
[-]Codex on Powershell is attempts to run `sh`[/-][+]Codex on Powershell attempts to run `sh`[/+][-]Codex on Powershell attempts to run `sh`[/-][+]Codex on PowerShell attempts to run `sh`[/+][-]Codex on PowerShell attempts to run `sh`[/-][+]Bug: Codex on PowerShell attempts to run `sh`[/+]PramaYudhistira commentedon Apr 18, 2025
I have a fix for this here #318 to provide cross-platform support
fix: Improper spawn of sh on Windows Powershell (#318)
gitmeatarru commentedon Apr 19, 2025
we waiting update, coz its still not working...
PramaYudhistira commentedon Apr 19, 2025
It hasn't been uploaded to npm yet. If you clone the repo and have this running locally instead of getting it from npm you will have all the recent commits.
@gitmeatarru
fix: Improper spawn of sh on Windows Powershell (openai#318)
fix: Improper spawn of sh on Windows Powershell (openai#318)