Repository navigation
Conversation
…and-issues Fix PowerShell -Command quoting
1. Enforce the use of PowerShell commands on Windows, minimizing reliance on Linux commands. 2. Wrap `Command` in script blocks to prevent syntax errors or truncation caused by outer shell parsing. 3. Fixed frequent failures when using codex on Windows due to Linux command or syntax incompatibility, improving overall compatibility and stability.
|
recheck |
zheli1119
left a comment
There was a problem hiding this comment.
Resolve merge conflicts; further boost the weighting for choosing pwsh on Windows.
|
Side note: If you install MSYS2 the bash commands will work as expected and function just as good as running it on Linux. |
I agree with this, but why not get it right from the very beginning? Or at least remind users at the start to install XXX for a better experience. I think many users will feel quite frustrated by these errors, and the overall impression is not very friendly. |
That is the problem though, these fixes do not actually properly add windows support. It is noticeably much slower and less effective when it uses any other shell than bash. To truly add windows support, requires a lot more rework than this basically. And I agree it should be at least documented in some way. But for now the best way is either WSL or MSYS2 |
|
Created a quick guide on Show and Tell for configuring bash on windows for Codex using MSY2 as a workaround right now if people want to know how: #3580 |
|
Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them. I suspect this PR is likely no longer relevant. We've made many changes recently to improve behavior on Windows, and those overlap the changes in this PR. If you think that there are remaining bugs that have not been addressed, let us know. |
Commandin script blocks to prevent syntax errors or truncation caused by outer shell parsing.