You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[parser] Bundled short flags break when a shared meta carries an optional argument (uniq -Dc proven; diff -cu, split -dl same pattern) #1306
When a command declares one short option both as a standalone form and fused into a shared long/short meta entry that carries an optional argument, the parser's combined-meta branch wins and the argument-eating semantics change: bundled short flags after it break. Probe-verified on uniq; the same meta pattern exists in diff/split.
Evidence (harness vs GNU, two runs)
printf 'dup\ndup\n' | uniq -Dc
GNU: uniq: printing all duplicated lines and repeat counts is meaningless + Try, rc1.
WinuxCmd: uniq: invalid argument c for --all-repeated, rc1 — the parser fused -Dc into --all-repeated with attached argument c.
Pattern sites (code): uniq.cpp declares {"c", "count"} and separately {"", "all-repeated", OptionalString} fused with 'D'. Same shape: diff.cpp (-c context vs -C/--context OptionalInt — probe GNU: diff -cu a b prints unified diff rc1(differs)) and split.cpp (-d vs -l OptionalInt — GNU: split -dl 5 f = numeric suffixes + 5-line chunks).
Source
src/core/opt.cppm: short tokens are matched against combined metas before standalone short defs; an OptionalString/OptionalInt combined meta takes the rest of the bundle as its argument.
Activity
WIP: fix(build): drop redundant inner export in version.cppm for GCC
WIP: fix(build): provide ::size_t in regex.cppm global fragment for G…
Merge pull request #1391 from unixwin/fix/winx3-parser
Merge pull request #1417 from unixwin/fix/iss-parser-cluster