Skip to content

fix(cp,mv,rm,ln): #1647 #1648 #1649 #1650 #1651 - #1700

Merged
caomengxuan666 merged 2 commits into
mainfrom
fix/cp-mv-rm-ln-1647-1651
Nov 14, 2026
Merged

caomengxuan666 merged 2 commits into
mainfrom
fix/cp-mv-rm-ln-1647-1651

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Closes #1648 #1649 #1651; Refs #1647 #1650. #1649: type-mismatch guard (adopt PR #1661, +2 tests). #1651: last-wins (adopt PR #1662, rc on decline fixed). #1648: cp -i decline/EOF rc 1. #1647: literal symptom (WSL LX symlink) is not reproducible with real Windows symlinks; fixed two same-family defects (dangling source -> cannot stat; self-copy through dir link). #1650: already GNU-correct, pinned. cp 70/70, mv 45/45, rm 40/40, ln 29/29.

- cp: dangling symlink source -> cannot stat (copy.c:2247); self-copy through dir link refused (copy.c:2694)
- cp -i: decline returns rc 1 (copy.c:2420-2432), incl. EOF
- mv: adopt #1649 type-mismatch guard (copy.c:2441-2504), +2 GNU-probed tests
- rm: empty operand pinned (already GNU-correct)
- ln: adopt #1651 last-wins (ln.c:506-513), rc on decline fixed
- cp 70/70, mv 45/45, rm 40/40, ln 29/29; cargo ln 9/9
@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 14, 2026 11:17
…1651

# Conflicts:
#	rust2/crates/winux-cmds/src/ln.rs
@caomengxuan666
caomengxuan666 merged commit 9421e31 into main Nov 14, 2026
@caomengxuan666
caomengxuan666 deleted the fix/cp-mv-rm-ln-1647-1651 branch November 14, 2026 11:18
caomengxuan666 added a commit that referenced this pull request Nov 14, 2026
- cp.cpp 2449 -> 207 lines (REGISTER_COMMAND/help/options only), streaming ABI
- #1700/#1732 semantics preserved on Rust: LX, dangling, -r -H, -i rc, self-copy
- gate 107 rows: 105 GNU pass / 0 fail / 2 SKIP; ctest cp 83/83
- 60-group matrix: new-vs-GNU rc 60/60; full edition 60/60/60
- 47 tr! keys; catalog patch under catalog/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant