Commands executed without shell when obviously should get executed via shell
Resolved 💬 4 comments Opened Nov 21, 2025 by inye Closed Dec 17, 2025
What version of Codex is running?
codex-cli 0.60.1
What subscription do you have?
plus
Which model were you using?
_No response_
What platform is your computer?
Linux 6.1.0-18-rt-amd64 x86_64 unknown
What issue are you seeing?
When codex tries to execute shell commands, it seemingly doing that without shell:
› count total lines of code in this project • Ran cd /home/dev1/Sources/my_project '&&' rg --files -0 '|' xargs -0 wc -l └ thread 'main' panicked at linux-sandbox/src/linux_run_main.rs:55:5: Failed to execvp cd: No such file or directory (os error 2) note: run with RUST_BACKTRACE=1 environment variable to display a backtrace • Ran rg --files -0 '|' xargs -0 wc -l └ rg: xargs: No such file or directory (os error 2) rg: wc: No such file or directory (os error 2)
Here, "cd" and "|" are obviously for shell. But for some reason shell is not used.
What steps can reproduce the bug?
Uploaded thread: 019aa580-242d-75c1-8281-c04f010f0a9e
What is the expected behavior?
_No response_
Additional information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗