Repository navigation
WIP: winx4-opt — reject invented pseudo-options in sort/mv/cp/join/tee/seq - #1409
Conversation
# Conflicts: # tests/unit/seq/seq_unit_test.cpp
|
Verified post-merge (origin/main @ 1854504): MSVC Debug build green; seq/sort/mv/cp/join/tee unit tests 221/221; full ctest — the 11 residuals are exactly the environment-bound baseline set (3x issue_1288 LongPathsEnabled=0, find.issue_1309_ls, 7x xargs CONIN$). Merge note: the seq test conflict interleaved main's #1376 streaming pin into the branch's seq_separator_still_legal_issue1355 body; rebuilt so all 31 tests are byte-identical to one parent side. Main's two stale -t tests (seq_long_terminator_replaces_final_newline, seq_short_terminator_replaces_only_final_separator) auto-resolved to the branch's deletion, matching the option removal. i18n: en drops the five invented pseudo-option keys and adds short-form keys join -o / sort -C / tee -p. Synced on winuxcmd-i18n sync/winx4-opt-i18n (zh-CN, VERSION 0.6.31). |
# Conflicts: # src/commands/mv.cpp # src/commands/seq.cpp # tests/unit/cp/cp_unit_test.cpp # tests/unit/mv/mv_unit_test.cpp
Fixes #1355
六命令各自自创的伪选项(GNU 无此选项却被静默接受)逐个删除,一 issue 六 commit:
--check-silent声明(-C保留、--check=silent合法形不动)d076b3c-I声明与parse_overwrite_mode的case 'I'(interactive_once仅由--interactive=once到达)b84dda5-c/--context改为仅--context(-Z保留)3cba6cb-o的长名--outputc0b1d7f-p的长名--diagnose685b7db-t/--terminator声明与 raw 扫描分支05e66b2每 commit 含该命令的 ctest 回归(断言 GNU rc + 诊断关键行 + 合法对照,测试名带 issue1355)。
验证(簇 mingw+Wine harness,GNU 9.4 为 oracle,证据在簇 REPORT
final-repro.txt):基线六伪选项 9/9 被接受、合法对照 13/13 正常;修复后构建 [107/107] rc=0、22/22 PASS(六项按 GNU 形态拒绝:sort rc2、其余 rc1;合法选项全无损)。ctest 本体走仓内 MSVC CI,集成时须确认六个 unit 目标全绿。集成注意:
a104bb2,集成时先 rebase 到当前 main。case 'I'删除落在 [mv] Overwrite mode re-derived by scanning raw argv characters: option values (e.g. -t ndir) trip -n/-i detection #1325 计划重写的parse_overwrite_mode同一函数——fileops 先落则本删除可被其重写自然吸收;本 PR 先落则 fileops 不得复活case 'I'。cp/join 与 [cp] -i reads answers character-wise: first answer's newline auto-answers the next prompt 'no' #1324、winx4-text comm and join strip\rline endings before comparing — CRLF inputs silently match LF-only keys #1354 仅同文件不同 hunk。=value时只报选项名、GNU 报全 token)已另行立案,不在本 PR 面内。