Skip to content

fix(executor): keep empty fields in compound field-split transport - #762

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/compound-transport-empty-fields
Oct 17, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/compound-transport-empty-fields

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

fix(executor): keep empty fields in compound field-split transport

What

set -- a.b..b; IFS=.; A=($1) stored 3 elements with b" " where GNU
stores 4 [a][b][][b]: compound_field_split_transport emitted a
synthetic tag+space separator for empty fields, which the indexed
re-splitter only honors as a boundary under whitespace IFS. Off it,
the quoted empty glued to its neighbor.

Fix (src/executor/assignment_helpers.rs only)

Hold empty-field "" bodies for the next located field's gap, which
carries every separator surrounding them, and distribute the gap's
real separators in order (held empties first, this field's boundary
takes the rest — a whitespace run still collapses to one boundary as
before). Degraded-location paths keep the historical synthetic
fallback. Consumer untouched: boundaries separated by "" bodies
each delimit a field; consecutive tag runs still collapse.

Verification

  • Probes: a.b..b (IFS=.) → 4; a::b (IFS=:) → 3; :a: → 2
    (leading/trailing empties); $1 $1 → 8; default-IFS and a.b.c
    unchanged. All match GNU.
  • issue298_299 file 12/12 (was 11/12); issue377 12/12;
    executor_tests serial 1540/10 (the 10 are the known
    environment/signal/CWD set, none field-split).
  • Full serial failure-set gate vs master + niubash A/B: see below.

…nNon-whitespace IFS drops empty fields in A=($1): the transport emitted\na synthetic tag+space separator for empty fields, which the re-splitter\nonly honors under whitespace IFS — off it the quoted empty glued to its\nneighbor (a.b..b with IFS=. stored b" "). Hold empty bodies for the\nnext located gap and distribute its real separators in order; whitespace\nruns still collapse to one boundary. a::b/a.b..b/:a: all match GNU now.\n\nissue298 file 12/12 (was 11/12); executor_tests 1540/10 unchanged.
@caomengxuan666
caomengxuan666 force-pushed the fix/compound-transport-empty-fields branch from f29b843 to 685b5b5 Compare October 17, 2026 06:27
@caomengxuan666

Copy link
Copy Markdown
Member Author

Verification status at merge: GitHub CI fully green (Rust linux/macOS, goldens+canaries, cross-target linux/darwin/android, shell functionality). Local: branch-leg full serial suite complete (271 targets, only the 10 known environment failures — signal tables/ulimit/CWD/part_080, none field-split); issue298 file 12/12; GNU probes for a.b..b/a::b/:a:/$1$1 all match. Local master-leg failure-set diff + niubash product A/B deferred: the Android tablet running the gates entered a kill loop (ZUI MemoryCleaner SwapFreeLow culls + thermal load, documented in the handoff issue) and could not complete the 28-test regression target locally. CI on healthy runners is the backstop.

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