Repository navigation
Description
Repro (both via -c, exact bytes)
A stored U+E314 value used as a name renders its E400 literal-char
escape pair instead of the raw char. Two sites, same family:
1. Command-not-found diagnostic names the E400 pair
v=$'\uE314'; "$v"- GNU:
bash: line 1: <U+E314>: command not found(raw char, bytesEE 8C 94), rc 127. - rubash:
rubash: line 1: <U+E400><U+E314>: command not found(pair, bytesEE 90 80 EE 8C 94), rc 127.
2. Redirect target filename carries the E400 pair
cd <dir> && v=$'\uE314' && { echo x > "$v"; } 2>&1Both shells rc 0 with no output, but the created file's name differs:
- GNU: file named
<U+E314>(bytesEE 8C 94). - rubash: file named
<U+E400><U+E314>(bytesEE 90 80 EE 8C 94) — the
carrier encoding escapes into the filesystem.
Expected
The raw char in both places. The stored value's E400 pair is an internal
encoding of a literal char; it must be decoded before the value is used as
a command name or a filename, exactly as it already is at the external
boundaries (argv/env reach real children as the raw char, fixed by #2881).
Evidence
- Golden cell
diagnostics_carry_no_markersintests/marker_leak_golden.rs
(PR test+lint: marker protocol enforcement gates — golden expansion, blind-consumer lint, registry census (Refs #2885) #3015, rubash Marker protocol enforcement gates: per-channel leak-golden coverage, blind-consumer lint, registry completeness (sweep #2879 follow-up) #2885 E6): the bad-substitution leg is GNU-identical
(both abort, rc 127); the command-not-found and redirect legs fail on
the E400 pair. Both legs are pinned as known-broken inverted pins in
PR test+lint: marker protocol enforcement gates — golden expansion, blind-consumer lint, registry census (Refs #2885) #3015 (they assert the current broken form and flip red when fixed). - Probes:
~/workspace/fix-2885/probes/g4_cmdnotfound_*,
g4_redir*(script-file probes + byte-exact Python-cprobes);
verification log~/workspace/fix-2885/verify-final4.log. - Note: via a script FILE (not
-c), both shells print the\uE314
spelling in the command-not-found diagnostic, byte-identical — the
divergence is specific to the-cpath the test exercises.
Relation to other E400-pair gaps
Same family as #3038 (expand_prompt does not decode the pair for U+E314)
and #3016 (U+E316 folds to a backslash in assignment concatenation):
a stored value's E400 pair is not decoded at a rendering/use boundary.
Different sites and guard chars; not the same fix.
Destination
1.5.1 (rubash #2885 E6 follow-up; fix lane to be dispatched).
Activity
fix: fold the E400 pair at the name boundaries — not-found diagnostic…
caomengxuan666 commentedon Nov 8, 2026
已由 PR #3075 修复并合入 master(squash merge
8a28d350,合入头5fe67c9d)。队长复核(
~/workspace/review-3040/verify.log,全腿 PASS)4984ce5c+ 仅钉文件)19p/1f,唯一失败diagnostics_carry_no_markers,left 逐字为\u{e400}\u{e314}泄漏形,与本单一致。deep_audit_b6_diagnostics7/1、issue1025_…14/2)头/基底失败名集逐一相同——既存环境形,非本改动。RUSTFLAGS="-D warnings"rc=0;fmt/hygiene/CR 净;marker-lint OK(117/260);api-ledger 281 符号全在。ee 8c 94 0a。修法:
printable_filename未引号分支与redirect_operand_literal(+ failglob 诊断共享 helper)同以 U+E400 存在性门控,折回时调用 #2881 的同一解码器,解码器本体零改动。同族其余四面(PATH 查找 / slash execve 分类 / cd 操作数 / exec 诊断)已立 #3076 处置。fix: fold the E400 pair at every name-consumption boundary (Refs #3076)…