You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P0-class] mkdir/touch/cp/rm/rmdir re-expand already-expanded argv (siblings of #511) #555
Sibling class of #511 (P0, fixed by #552): five more external file builtins re-expand already-expanded argv
#552's investigation found that external_cat's operand loop was not unique — the same file
(src/executor/external_file_builtins.rs) contains five sibling wrappers that re-run expand_word over argv which the simple-command executor has already expanded:
Same silent-corruption class as #511: a single-quoted operand reaches the builtin with the
quotes stripped but a live-looking $, and the second expansion rescan opens/creates/
removes the wrong path. The fix pattern is proven by #552 (use argv as-is; pathname
expansion happens once at dispatch) and by sed's earlier #177 fix in the same file.
Acceptance
One regression test per builtin (quoted $VAR operand must stay literal; \$ escaped;
unset variable stays literal error text — mirroring tests/issue511_cat_quoted_operand_regressions.rs)
The whole family covered by a shared test helper so the next wrapper added to this file
cannot reintroduce the pattern
Activity
fix(#555): mkdir/touch/cp/rm/rmdir stop re-expanding already-expanded…
docs+test: codify the three boundary invariants - native core, POSIX …
docs(changelog): fold the post-0d99ae2c wave into the 1.4.0 section (#…
fix(tests): gate Windows-path literal rows to Windows (#555) (#694)
fix(executor): sim layer declines the remaining silent subsets (rubas…
fix(executor): mkfifo emulation declines off Windows (rubash#1725)