Commands executed without shell when obviously should get executed via shell

Resolved 💬 4 comments Opened Nov 21, 2025 by inye Closed Dec 17, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #6997
  • #6940

Powered by Codex Action

inye · 9 months ago

unified_exec = true helps.
I think this issue can be closed, thanks bot

gabrielecirulli · 9 months ago

I believe this is still an issue. I just ran into it with catastrophic effects. #7315

inye · 8 months ago

This issue is resolved as of codex 0.73.0