Repository navigation
Conversation
|
Hi @YOMXXX, thanks for this PR, and sorry for the slow review. The idea is right and the approach (peel the wrapper, recurse, re-prepend) is the correct one. I ported the branch onto current develop and tested it: a 6,692 command differential fuzz against a develop baseline, plus execution tests with argv-recording shims. Findings below. Blockers1. Fails an existing develop test. Ported onto develop: 3120 passed / 0 failed becomes 3122 passed / 1 failed. That assertion comes from the commit rejecting unanchored TOML 2. Under
No tee file either, since it is written after filtering completes. The streaming runner does not help: Repro: a shim doing Fixing this needs flush-on-signal in 3. Rebase. 3 of 4 hunks reject. Must fix4. Drop 5. Use the existing table pattern. Five inline literals in a 6. Token filtering swallows shell syntax into the prefix. Nits
What already worksArgv and exit code preserving under real execution: 21 wrapped/mode combinations, byte identical argv, exact exit code propagation. Fuzz results: 0 crashes, 0 lost rewrites, 1,465 newly filtered commands, and rewriting is idempotent (2,145 rewrites are a fixed point). The depth guard holds at 200 nested wrappers, |
|
Solved by #3937 I've aded you as co author thanks for contributing ! |
Summary
timeout,time,nice,nohup,stdbuf) and rewrite the inner supported command.Fixes #2375
Verification
cargo +1.93.0 test process_wrapper -- --nocapturecargo +1.93.0 test prefix -- --nocapturecargo +1.93.0 fmt --all -- --checkcargo +1.93.0 clippy --all-targetscargo +1.93.0 test --all -- --skip small_grep_not_worse_than_plaingit diff --checkcargo +1.93.0 run --quiet -- rewrite "timeout 300 cargo test"-> printstimeout 300 rtk cargo testand exits 3 per Ask verdict protocol