Repository navigation
fix(ls): merge adjacent $'...' segments in shell-escape quoting (Fixes #1890) - #1893
Merged
caomengxuan666 merged 1 commit intoNov 27, 2026
Merged
Conversation
Member
|
CAPTAIN-VERIFY(X299 运行时复验):达合入门,队长合入。lib 计数对账对平:新树(base |
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
quotearg.c(quotearg_buffer_restyled,pending_shell_escape_end) state tracking tols::shell_escape_quote_display_name_l:$'...'segment (''$'\344\270\255\346\226\207'inLC_ALL=Cinstead of''$'\344\270\255'''$'\346\226\207''').$'...'segments close directly without emitting a redundant trailing''.""as'', escape\0as\0, and escape0x7f(DEL) as\177instead of treating\u{7f}as printable.tr!) are touched.Fixes #1890
What was removed
'$'...'open/close wrapping and the erroneous|| c == '\u{7f}'printable exemption inshell_escape_quote_display_name_l, and updated the stale comment/expectation inexplicit_c_locale_still_escapes_cjk_in_shell_escape.Verification
rustfmt --check --edition 2021 rust2/crates/winux-cmds/src/ls.rs: passedcargo check --workspace --tests --target x86_64-pc-windows-msvc&aarch64-pc-windows-msvc: passedcargo test& differential gate execution: owed to PR CI