Skip to content

feat: comprehensive GNU compatibility audit and implementation - #179

Merged
caomengxuan666 merged 3 commits into
mainfrom
feat/gnu-compatibility-audit
Aug 28, 2026
Merged

feat: comprehensive GNU compatibility audit and implementation#179
caomengxuan666 merged 3 commits into
mainfrom
feat/gnu-compatibility-audit

Conversation

@caomengxuan666

Copy link
Copy Markdown
Collaborator

GNU Compatibility Audit & Implementation\n\n### Summary\nComplete audit and implementation of GNU Coreutils compatibility across all 169 commands in WinuxCmd.\n\n### Changes\n\nOption Implementations (170+ new options):\n- diff: 36 options (--exclude, --color, --ignore-case, etc.)\n- patch: 25 options (--force, --fuzz, --output, etc.)\n- find: 14 ExprKind + parser wiring for findutils options\n- ls: -D/--dired, --hyperlink [DIFFERS]\n- which: fixed -s bug + 6 options\n- du: time-style, count-links, etc.\n- od: floating-point, strings, traditional\n- top: pid, user, threads, width, version\n- free: -m, -l, -s, -c\n- And 20+ other commands\n\nBug Fixes (12 critical):\n- mpicalc: -- decrement operator fixed\n- killall: default exact=false (GNU behavior)\n- pkill/pgrep: substring -> ECMAScript regex\n- pidof: --scripts -> --exact\n- users/groups: real Win32 enumeration\n- ps: -a/-x semantics corrected\n- column: 4 options wired into runtime\n- watch: -d difference highlighting implemented\n- more: -f/-l/-e connected to display logic\n- hexdump: -e returns explicit error\n\nTest Framework:\n- Fixed 0xc0000409 crash (/EHsc + path fix)\n- Added 170+ lines of unit tests for 10 commands\n- Fixed 22 test files\n\nDocumentation:\n- DOCS/en/command_compatibility_matrix.md (1064 lines)\n- DOCS/en/gnu_test_baseline.md\n- scripts/run_gnu_tests.sh\n- scripts/compare_outputs.sh\n\nI18N:\n- 297+ new translation keys in zh-CN catalog\n- Total: 3250 keys, 0 duplicates\n\n### Verification\n- Build: exit 0\n- Git diff check: pass\n- Tests: 467/501 (93%) pass\n- All 169 commands audited against GNU upstream

- Audited all 169 commands against GNU upstream
- Added 170+ new option implementations
- Fixed 12 critical bugs (mpicalc, killall, pkill, pidof, users, groups, etc.)
- Fixed test crash (0xc0000409) in test framework
- Added 170+ lines of new unit tests for 10 commands
- Created compatibility matrix documentation (1064 lines)
- Created GNU test framework (run_gnu_tests.sh, compare_outputs.sh)
- Updated I18N catalog with 3250+ translation keys
- All 169 commands audited with [GNU]/[EXT]/[DIFFERS] annotations
@caomengxuan666
caomengxuan666 merged commit db78f34 into main Aug 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant