Repository navigation
fix(fold): parse numeric width from current index in clustered short options - #1896
Merged
caomengxuan666 merged 1 commit intoNov 27, 2026
Merged
Conversation
Member
|
CAPTAIN-VERIFY(X299 运行时复验):达合入门,队长合入。lib 1092/0、新钉实跑绿;driver 六形(-s4/-b3/-s4x/-42/-w4/-w 4)与 GNU coreutils 9.4 逐项全合(-s4x 仅 argv0 前缀差)。 |
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.
Summary
fold.rsstarting from the current digit offsetchars[ci..]rather than&arg[1..], matching GNU coreutils 9.4src/fold.c:267-278(optarg--).fold -s4orfold -b3passed"s4"/"b3"toparse_widthand failed withfold: invalid number of columns: 's4'.tr!) are modified.What was removed
let original = &arg[1..];whole-cluster slicing on digit short options.Verification
rustfmt --check --edition 2021 rust2/crates/winux-cmds/src/fold.rs: passedcargo check --workspace --tests --target x86_64-pc-windows-msvc&aarch64-pc-windows-msvc: passedcargo testexecution (clustered_flag_and_digit_short_options): owed to PR CI