feat: comprehensive GNU compatibility audit and implementation - #179
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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