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
[P1][parse] multi-line arithmetic command with (grouped assign) + comma-newline rejected; GNU 5.3.0 accepts — breaks 6 ble.sh files #435
niu runtime: rc=2, diagnostic rewrites the construct to a && ( b=1 ) , ; — the arithmetic command is terminated at the comma-newline and the continuation is parsed as a fresh command
Variant matrix (all GNU-accepted, all rubash/niu-rejected unless noted):
((a||(b=1),\n c+=${a})) fails (|| too)
((a&&(b[i+1]=1),\n c+=${#a})) fails (array subscripts fine elsewhere)
same construct on ONE line passes; c+=${#a} )) (space before ))) passes; $(( ... )) substitution form passes
So the trigger class is: two-line (( )) + (...)-grouped assignment before the comma + newline continuation.
Real-world impact (ble.sh — akinomyoga/ble.sh, the flagship bash line editor)
All six GNU -n-accept (rc=0); rubash -n rejects all six; for canvas/color/edit GNU runtime rc=0 while niu runtime rc=2:
Activity
[-][P1][parse] multi-line arithmetic command rejected; GNU 5.3.0 accepts — breaks 6 ble.sh files[/-][+][P1][parse] multi-line arithmetic command with (grouped assign) + comma-newline rejected; GNU 5.3.0 accepts — breaks 6 ble.sh files[/+]harvest: overnight-survival + oracle fixes; wt97b resume & gold triag…
docs(audit): wt98b/goldtri ecosystem gold triage — 172 rows classifie…