Codex tries to run shell commands in single quotes
Resolved 💬 5 comments Opened Sep 19, 2025 by DenisGorbachev Closed Apr 18, 2026
What version of Codex is running?
codex-cli 0.39.0
Which model were you using?
gpt-5-codex high
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
• Ran 'fd mise.toml'
└ bash: fd mise.toml: command not found
• Ran 'ls'
• Ran 'rg "dx:build:web" mise.toml'
└ bash: rg "dx:build:web" mise.toml: command not found
Codex tries to run 'fd mise.toml' instead of fd mise.toml (without quotes).
I can't reproduce it with a specific prompt, but it happens sporadically quite often.
Maybe we can simply trim ' before executing the command?
What is the expected behavior?
Codex should execute the shell commands without wrapping them in single quotes.
What do you see instead?
_No response_
Additional information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗